first commit
This commit is contained in:
commit
83e28827a1
64 files changed
+11127
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ParkingRecord extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['car_id', 'entry_time', 'exit_time'];
|
||||
|
||||
protected $dates = ['entry_time', 'exit_time'];
|
||||
|
||||
public function car()
|
||||
{
|
||||
return $this->belongsTo(Car::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user