show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:14:06 +08:00
parent de139c4182
commit 81eecaa57f
+4 -2
View File
@@ -14,8 +14,10 @@ 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::where('status', 6)->get();
dd(count($bookings));
$bookings = \App\Booking::select('id')->where('status', 6)->whereHas('invoice', function($q){
$q->whereNotNull('invoice_url');
})->get();
dd($bookings);
})->name('home');
Route::group(['middleware' => ['role:admin']], function() {
Route::get('bulkBookings', function () {