group(function () { Route::get('team/form/{element}', 'TeamAPIController@form'); Route::resource('team', 'TeamAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for teams Route::prefix('{guard}/team')->group(function () { Route::get('team/form/{element}', 'TeamAPIController@form'); Route::apiResource('team', 'TeamAPIController'); }); // Public routes for teams Route::get('team/Team', 'TeamPublicController@getTeam'); } ); }