group(function () { Route::resource('product', 'ProductResourceController'); }); // Guard routes for category Route::prefix('{guard}/product')->group(function () { Route::resource('category', 'CategoryResourceController'); }); // Guard routes for catalog Route::prefix('{guard}/product')->group(function () { Route::resource('catalog', 'CatalogResourceController'); }); // Public routes for product Route::get('products/', 'ProductPublicController@index'); Route::get('product/{slug?}', 'ProductPublicController@show');