BUG 語法欄位下錯 20250523
This commit is contained in:
parent
b9d7dfb694
commit
6b9e1c5e67
@ -185,7 +185,7 @@ class RoomControlController extends Controller
|
||||
$roomName = $matches[2]; // '101'
|
||||
}
|
||||
$branch=Branch::where('name',$validated['branch_name'])->first();
|
||||
$room = Room::where('branch', $branch->id)
|
||||
$room = Room::where('branch_id', $branch->id)
|
||||
->where('name', $roomName)
|
||||
->where('type', $roomType)
|
||||
->first();
|
||||
|
Loading…
x
Reference in New Issue
Block a user