From af66074c9a3a75678b552dbd904883b3feedd8f4 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 17:24:21 +0800 Subject: [PATCH] show old invoices --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 7927a3a0..0f927694 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,7 @@ Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); Route::get('/old-invoices', function(){ $bookings = \App\Booking::select('id')->where('status', 6)->whereHas('purchaseOrder', function($q){ - $q->whereNotNull('image_url'); + $q->whereNotNull('image_path'); })->get(); foreach ($bookings as $booking) {