updated adminshow function

This commit is contained in:
Jack Goh
2018-06-25 16:56:36 +08:00
parent 2c6128c564
commit b715663d47
+2 -1
View File
@@ -142,7 +142,8 @@ class BookingController extends Controller
public function adminShow($id)
{
$booking = Booking::where('id', $id)->first();
$booking = Booking::where('id', $id)->first();
return $booking->userBankSlip()->get();
if($booking){
$date1 = new DateTime($booking->created_at);