update
This commit is contained in:
@@ -11,6 +11,10 @@ class Historial_cuenta extends Model
|
||||
protected $fillable = [
|
||||
'historial_id',
|
||||
'cuenta_id',
|
||||
|
||||
];
|
||||
|
||||
public function historial()
|
||||
{
|
||||
return $this->belongsTo(Historiale::class, 'historial_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class Historiale extends Model
|
||||
|
||||
public function vendedor()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->belongsTo(User::class , 'vendedor_id');
|
||||
}
|
||||
|
||||
public function tarifa()
|
||||
|
||||
@@ -18,10 +18,10 @@ class Pendientes extends Model
|
||||
|
||||
public function servicio()
|
||||
{
|
||||
return $this->hasMany(Servicio::class, 'servicio_id');
|
||||
return $this->belongsTo(Servicio::class, 'servicio_id');
|
||||
}
|
||||
public function historial()
|
||||
{
|
||||
return $this->hasMany(Historiale::class, 'historial_id');
|
||||
return $this->belongsTo(Historiale::class, 'historial_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user