diff --git a/routes/web.php b/routes/web.php index aa484f86..5d2301c9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -21,7 +21,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('/report/x1', function(){ - $bookings = Booking::where('admin_status', '>=', 3)->where('term', 'x1'); + $bookings = Booking::where('admin_status', '>=', 3)->where('term', 'x1')->get(); $months = $bookings->groupBy(function($item) { return $item->created_at->format('Y-m-d'); });