diff --git a/routes/web.php b/routes/web.php index eda543d2..75254062 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,7 @@ 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::select(DB::raw('*'),DB::raw('YEAR(created_at) year, MONTH(created_at) month'))->where('status', 6)->whereHas('purchaseOrder', function($q){ + $bookings = \App\Booking::select('id, created_at',DB::raw('YEAR(created_at) year, MONTH(created_at) month'))->where('status', 6)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('image_path'); })->groupby('year','month')->get(); dd($bookings);