Skip to content

PHP code snippet – How to get dates between two dates in laravel?

$from = date('2018-01-01');
$to = date('2018-05-02');

Reservation::whereBetween('reservation_from', [$from, $to])->get();
See also  CSS code snippet - How to make border blur ?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.