group(function () { Route::get('plan/form/{element}', 'PlanAPIController@form'); Route::resource('plan', 'PlanAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for tests Route::prefix('{guard}/test')->group(function () { Route::get('plan/form/{element}', 'PlanAPIController@form'); Route::apiResource('plan', 'PlanAPIController'); }); // Public routes for tests Route::get('test/Plan', 'PlanPublicController@getPlan'); } ); }