Answers for "find the next 7 date data in laravel eloquent"

PHP
0

find the next 7 date data in laravel eloquent

$startDate = Carbon::today();
$endDate = Carbon::today()->addDays(7);
$invoices = Invoice::whereBetween('due_date', [$startDate, $endDate])->get();
// Replace "due_date" with your actual column name
// Check your model names, they should be singular and not plural.

dd($invoices);
Posted by: Guest on November-27-2020

Code answers related to "find the next 7 date data in laravel eloquent"

Browse Popular Code Answers by Language