Hi, how can I use Laravel to only get the records from the database where the date has passed? So for example, customers were supposed to pick up 9/9/2021 but didn't show up, so I want to get that record from the Database and display it in an overdue section. My dates are formatted like: day/month/year => 7/8/2021
This is what I have right now:
public function luggage(Request $request)
{
$today = date("j/n/Y");
$bookingsOverdue = LuggageStorage::where('pickUpDate', '>', $today)->where('pickedUp', false)->get()->toJson();
return view('dashboard.luggage', compact('bookingsOverdue'));
}