How to get data between two dates in Laravel?
In Laravel, we can use whereBetween()
function to get data between two dates.
BY Best Interview Question ON 26 May 2020
Example
Users::whereBetween('created_at', [$firstDate, $secondDate])->get();