This commit is contained in:
root committed 2026-05-11 17:58:21 +00:00
1 parent b03c1d4619
commit b07423aef3
42 files changed
+1431 -394

No files matched your search

+2 -3
View File
@@ -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');
}
}