mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-28 08:44:16 +00:00
added booking list controller
This commit is contained in:
@@ -17,9 +17,10 @@ class BookingController extends Controller
|
||||
{
|
||||
|
||||
public function index(){
|
||||
return "hello";
|
||||
$booking = Booking::where('user_id',Auth::user()->id)->get();
|
||||
return $booking;
|
||||
}
|
||||
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$booking = Booking::where('user_id',Auth::user()->id)->where('id', $id)->first();
|
||||
@@ -28,8 +29,6 @@ class BookingController extends Controller
|
||||
$date2 = new DateTime();
|
||||
$difference_in_seconds = ($date1->format('U') + 600) - ($date2->format('U'));
|
||||
|
||||
|
||||
|
||||
$booking->timeout = $difference_in_seconds;
|
||||
|
||||
if (!$booking){
|
||||
|
||||
Reference in New Issue
Block a user