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