group(function () { Route::resource('carousel', 'CarouselResourceController'); }); // Guard routes for catalog Route::prefix('{guard}/homepage')->group(function () { Route::resource('catalog', 'CatalogResourceController'); }); // Guard routes for news_and_press Route::prefix('{guard}/homepage')->group(function () { Route::resource('news_and_press', 'NewsAndPressResourceController'); }); // Guard routes for promo Route::prefix('{guard}/homepage')->group(function () { Route::resource('promo', 'PromoResourceController'); }); // Public routes for homepage Route::get('homepages/', 'HomepagePublicController@index'); Route::get('homepage/{slug?}', 'HomepagePublicController@show');