latest working update

This commit is contained in:
ghassan committed 2026-04-16 19:42:37 +03:00
1 parent ba453d7b82
commit eb0d79d503
8 files changed
+592 -20

No files matched your search

+6
View File
@@ -24,6 +24,7 @@ class User extends Authenticatable
'phone',
'password',
'role',
'parking_lot_id',
];
protected $casts = [
@@ -54,4 +55,9 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function assignedLot(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(ParkingLot::class, 'parking_lot_id');
}
}