diff --git a/routes/web.php b/routes/web.php index 7f80c2fc..2f2d4349 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,7 @@ Route::get('/', 'WelcomeController@index'); Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.request'); Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); Route::get('/old-invoices', function(){ - $bookings = \App\Booking::select('id')->where('status', 6)->whereHas('invoice', function($q){ + $bookings = \App\Booking::select('id')->where('status', 6)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('invoice_path'); })->get();