set_route_guard('web').'/auto'], function () { Route::resource('manufacturer', 'ManufacturerResourceController'); }); // Public routes for manufacturer Route::get('manufacturer/popular/{period?}', 'ManufacturerPublicController@popular'); Route::get('autos/', 'ManufacturerPublicController@index'); Route::get('autos/{slug?}', 'ManufacturerPublicController@show'); // Resource routes for car Route::group(['prefix' => set_route_guard('web').'/auto'], function () { Route::resource('car', 'CarResourceController'); }); // Public routes for car Route::get('car/popular/{period?}', 'CarPublicController@popular'); Route::get('autos/', 'CarPublicController@index'); Route::get('autos/{slug?}', 'CarPublicController@show'); // Resource routes for automodel Route::group(['prefix' => set_route_guard('web').'/auto'], function () { Route::resource('automodel', 'AutomodelResourceController'); }); // Public routes for automodel Route::get('automodel/popular/{period?}', 'AutomodelPublicController@popular'); Route::get('autos/', 'AutomodelPublicController@index'); Route::get('autos/{slug?}', 'AutomodelPublicController@show'); // Resource routes for body Route::group(['prefix' => set_route_guard('web').'/auto'], function () { Route::resource('body', 'BodyResourceController'); }); // Public routes for body Route::get('body/popular/{period?}', 'BodyPublicController@popular'); Route::get('autos/', 'BodyPublicController@index'); Route::get('autos/{slug?}', 'BodyPublicController@show');