Fixed redirect
This commit is contained in:
@@ -73,7 +73,9 @@ class WashingReservationController extends Controller
|
||||
]);
|
||||
}else{
|
||||
$reservations = WashingReservation::query()->paginate($request->input("limit", 20));
|
||||
return Response::detect("washing-machines.index", ['reservations' => $reservations]);
|
||||
$machines = WashingMachine::all();
|
||||
|
||||
return Response::detect("washing-machines.index", ['reservations' => $reservations, 'machines' => $machines]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +134,9 @@ class WashingReservationController extends Controller
|
||||
]);
|
||||
}else{
|
||||
$reservations = WashingReservation::query()->paginate($request->input("limit", 20));
|
||||
return Response::detect("washing-machines.index", ['reservations' => $reservations]);
|
||||
$machines = WashingMachine::all();
|
||||
|
||||
return Response::detect("washing-machines.index", ['reservations' => $reservations, 'machines' => $machines]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user