diff --git a/routes/web.php b/routes/web.php index 2f2d4349..7927a3a0 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('invoice_path'); + $q->whereNotNull('image_url'); })->get(); foreach ($bookings as $booking) {