tableController->index(); } public function bookings(Request $request) { $business_id = $request->attributes->get('api_user')['business_id']; $bookings = Booking::where('business_id', $business_id) ->orderBy('booking_start', 'desc') ->limit(50) ->get(); return $this->success($bookings); } }