diff --git a/routes/web.php b/routes/web.php index 800ddfca..e627c677 100644 --- a/routes/web.php +++ b/routes/web.php @@ -47,7 +47,7 @@ Route::get('/old-invoices', function(){ })->name('invoice.old'); Route::get('/approved-today', function(){ - $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today())->distinct()->get('invoice_id'); + $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today())->distinct()->get(['invoice_id']); echo count($approvedInvoices).'



'; foreach($approvedInvoices as $approved){ echo $approved->invoice->booking->id.'
';