middleware('guest'); Auth::routes(); Route::group(['middleware' => 'auth'], function () { Route::get('/home', 'HomeController@index') ->name('home'); Route::get('/sales-purchases/chart-data', 'HomeController@salesPurchasesChart') ->name('sales-purchases.chart'); Route::get('/current-month/chart-data', 'HomeController@currentMonthChart') ->name('current-month.chart'); Route::get('/payment-flow/chart-data', 'HomeController@paymentChart') ->name('payment-flow.chart'); });