name('public.view'); Route::group(['middleware' => ['auth']], static function () { Route::get('/home', 'HomeController@index')->name('home'); Route::get('/home/add', 'HomeController@add')->name('home.add'); Route::post('/home/add', 'HomeController@store')->name('home.store'); Route::get('/home/{id}', 'HomeController@show')->name('home.show'); Route::get('/home/update/{id}', 'HomeController@update')->name('home.update'); Route::post('/home/update/{id}', 'HomeController@storeupdate')->name('home.store.update'); Route::post('/ajax/fetch', 'HomeController@fetch')->name('ajax.fetch'); });