LAR_Maintenance/app/Models/MaintenanceHistory.php

23 lines
394 B
PHP
Raw Normal View History

2024-07-30 08:44:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceHistory extends Model
{
use HasFactory;
2024-07-31 15:04:33 +00:00
protected $fillable = [
'maintenance_id',
'start_at',
'finished_at',
];
public function maintenance()
{
return $this->BelongsTo(Maintenance::class);
}
2024-07-30 08:44:58 +00:00
}