diff --git a/routes/web.php b/routes/web.php index 45ff8b2d..951bd092 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,7 +18,7 @@ Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); Route::get('/po-approval', function(){ - $invoices = InvoiceStatuses::where('status', 'pending'); + $invoices = InvoiceStatuses::where('status', 'pending')->get(); dd(count($invoices)); foreach ($invoices as $invoice){ echo $invoice->invoice->booking->id;