Initial commit - Car Rental Management System

This commit is contained in:
Innovator committed 2026-02-19 22:05:20 +00:00
commit f72173377a
100 files changed
+15201

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Service extends Model
{
protected $fillable = ['car_id', 'type', 'description', 'cost', 'service_date', 'next_service_date', 'mileage_at_service', 'status'];
protected $casts = [
'service_date' => 'date',
'next_service_date' => 'date',
];
public function car()
{
return $this->belongsTo(Car::class);
}
}