Auth::routes(); Route::group(['middleware' => 'auth'], function() { Route::get('catalog','CatalogController@getIndex'); Route::get('show/{id}','CatalogController@getShow'); Route::get('create','CatalogController@getCreate'); Route::get('edit/{id}','CatalogController@getEdit'); Route::put('edit/{id}','CatalogController@putEdit'); Route::post('create','CatalogController@postCreate'); });
Auth::routes();
Route::group(['middleware' => 'auth'], function() {
Route::get('catalog','CatalogController@getIndex');
Route::get('show/{id}','CatalogController@getShow');
Route::get('create','CatalogController@getCreate');
Route::get('edit/{id}','CatalogController@getEdit');
Route::put('edit/{id}','CatalogController@putEdit');
Route::post('create','CatalogController@postCreate');
});