group(function () { Route::get('params/form/{element}', 'ParamsAPIController@form'); Route::resource('params', 'ParamsAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for params Route::prefix('{guard}/param')->group(function () { Route::get('params/form/{element}', 'ParamsAPIController@form'); Route::apiResource('params', 'ParamsAPIController'); }); // Public routes for params Route::get('param/Params', 'ParamsPublicController@getParams'); } ); }