latest working update
This commit is contained in:
1 parent
ba453d7b82
commit
eb0d79d503
8 files changed
+592
-20
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user