LAR_Maintenance/app/Models/Maintenance.php
2024-07-31 17:04:33 +02:00

23 lines
378 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Maintenance extends Model
{
use HasFactory;
protected $fillable = [
'name',
'description',
'schedule',
];
public function history()
{
return $this->hasMany(MaintenanceHistory::class);
}
}