group(function () { Route::resource('seo', 'SeoResourceController'); }); // Public routes for seo Route::get('seos/', 'SeoPublicController@index'); Route::get('seo/{slug?}', 'SeoPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for seo Route::prefix('{guard}/seo')->group(function () { Route::resource('seo', 'SeoResourceController'); }); // Public routes for seo Route::get('seos/', 'SeoPublicController@index'); Route::get('seo/{slug?}', 'SeoPublicController@show'); } ); }