group(function () { Route::get('member/form/{element}', 'MemberAPIController@form'); Route::resource('member', 'MemberAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for members Route::prefix('{guard}/member')->group(function () { Route::get('member/form/{element}', 'MemberAPIController@form'); Route::apiResource('member', 'MemberAPIController'); }); // Public routes for members Route::get('member/Member', 'MemberPublicController@getMember'); } ); }