show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:14:50 +08:00
parent 81eecaa57f
commit 4e822437b1
+1 -1
View File
@@ -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');