BookingController.php, Booking.php - Was already made being called washing-reservation
Route in web.php (Bookings not needed)

Fixed:
WashingReservationController.php
admin->layout->base (washing-reservations instead of booking)
This commit is contained in:
Anders
2020-06-25 13:28:51 +02:00
parent 1105233f7c
commit a77b266999
7 changed files with 15 additions and 126 deletions
@@ -19,7 +19,7 @@ class WashingReservationController extends Controller
{
$reservations = WashingReservation::query()->paginate($request->query("page", 1));
return Response::detect("washing-reservation.index");
return Response::detect("washing-reservations.index", [ "reservations" => $reservations]);
}
/**
@@ -29,7 +29,7 @@ class WashingReservationController extends Controller
*/
public function create()
{
return Response::detect("washing-reservation.create");
return Response::detect("washing-reservations.create");
}
/**
@@ -47,7 +47,7 @@ class WashingReservationController extends Controller
$machineReservation = new WashingReservation($data);
$machineReservation->save();
return Response::detect("washing-reservation.store");
return Response::detect("washing-reservations.store");
}
/**
@@ -60,7 +60,7 @@ class WashingReservationController extends Controller
{
$machineReservation = WashingReservation::find($id);
return Response::detect("washing-reservation.show", [
return Response::detect("washing-reservations.show", [
"machineReservation" => $machineReservation
]);
}
@@ -73,7 +73,7 @@ class WashingReservationController extends Controller
*/
public function edit($id)
{
return Response::detect("washing-reservation.edit");
return Response::detect("washing-reservations.edit");
}
/**
@@ -95,7 +95,7 @@ class WashingReservationController extends Controller
$machineReservation->save();
return Response::detect("washing-reservation.edit", [
return Response::detect("washing-reservations.edit", [
"washingReservation" => $machineReservation
]);
}
@@ -111,6 +111,6 @@ class WashingReservationController extends Controller
$machineReservation = WashingReservation::find($id);
$machineReservation->delete();
return Response::detect("washing-reservation.delete");
return Response::detect("washing-reservations.delete");
}
}