diff --git a/routes/web.php b/routes/web.php index 31177f9a..4eeb7ff2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,7 +16,8 @@ Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('p Route::get('/old-invoices', function(){ $bookings = \App\Booking::where('status', 6)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('image_path'); - })->get(); + })->groupby('year','month')->get(); + dd($bookings); echo "