Implemented deletion of bookings.

This commit is contained in:
Lukas Halbritter
2018-10-05 19:38:47 +02:00
parent 72252ab2c6
commit f58b193c4e
3 changed files with 57 additions and 3 deletions
+6 -2
View File
@@ -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'));
}
/**