SyntaxFix
Write A Post
Hire A Developer
Questions
The following should work:
$now = date('Y-m-d'); $reservations = Reservation::where('reservation_from', '>=', $now) ->where('reservation_from', '<=', $to) ->get();