latest
This commit is contained in:
1 parent
b03c1d4619
commit
b07423aef3
42 files changed
+1431
-394
No files matched your search
+2
-3
@@ -24,7 +24,6 @@ class User extends Authenticatable
|
||||
'phone',
|
||||
'password',
|
||||
'role',
|
||||
'parking_lot_id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -56,8 +55,8 @@ class User extends Authenticatable
|
||||
];
|
||||
}
|
||||
|
||||
public function assignedLot(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
public function assignedLots(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
{
|
||||
return $this->belongsTo(ParkingLot::class, 'parking_lot_id');
|
||||
return $this->belongsToMany(ParkingLot::class, 'operator_parking_lot');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user