In Laravel, we can use whereBetween() function to get data between two dates.

Example

                                        

Users::whereBetween('created_at', [$firstDate, $secondDate])->get();

Suggest An Answer

Our Particitants

with the help of Carbon and eloquent query