diff --git a/routes/web.php b/routes/web.php index 21677392..091224d3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,13 +18,16 @@ 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(); - dd($bookings->groupBy(function($item) { + })->get()->groupBy(function($item) { return $item->created_at->format('Y-m'); - })); + }); echo "