From 4e822437b15d7fce689da79ef75c3c465822e8c5 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 17:14:50 +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 eff10eeb..41da1ad6 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('invoice', function($q){ - $q->whereNotNull('invoice_url'); + $q->whereNotNull('invoice_path'); })->get(); dd($bookings); })->name('home');