1 year ago

Extend date to 3 more hours where post = today's post

Posted 1 year ago by pickab00

I know the title is a bit confusing. I myself am trying to make sense of it. Basically I am using Carbon to get the posts for today and this is how it looks like.

$array = Reservation::whereDate('reservation_made_on', Carbon::today())->get();

So with this, I am getting the reservations made for today (if any). Now that means that the reservations will not be visible after 12:00 AM/24:00. But I want it to be visible till 03:00 AM. So basically its tomorrow and no longer today. How can I achieve this.

Please sign in or create an account to participate in this conversation.