Untitled
Anonymous
plain_text
03/08/2022 5:46 PM
580 B
16
Indexable
public function bookings()
{
$bookings = Booking::where([
['account_id', "=", Auth::user()->selected_account],
['filial_id', "=", Auth::user()->selected_filial],
['start',">=" ,Carbon::now()]
])->orderBy('start', 'desc')
->with('bookableArea','bookableArea.images' , 'user')
->get();
return response()->json(['data' => $bookings]);
}Editor is loading...