Implemented deletion of bookings.
This commit is contained in:
@@ -213,7 +213,9 @@ class BookingsController extends Controller
|
||||
*/
|
||||
public function delete(Booking $booking)
|
||||
{
|
||||
//
|
||||
$booking->load('subBookings.accountType.accountClass.ioType');
|
||||
|
||||
return view('/bookings/delete', compact('booking'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -224,7 +226,9 @@ class BookingsController extends Controller
|
||||
*/
|
||||
public function destroy(Booking $booking)
|
||||
{
|
||||
//
|
||||
$booking->delete();
|
||||
|
||||
return redirect('/bookings/year-' . Carbon::parse(request('date'))->format('Y'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user