28 lines
523 B
PHP
Executable File
28 lines
523 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Pendientes extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'historial_id',
|
|
'servicio_id',
|
|
'cantidad',
|
|
'estado',
|
|
];
|
|
|
|
public function servicio()
|
|
{
|
|
return $this->belongsTo(Servicio::class, 'servicio_id');
|
|
}
|
|
public function historial()
|
|
{
|
|
return $this->belongsTo(Historiale::class, 'historial_id');
|
|
}
|
|
}
|