group(function () { Route::get('calls/form/{element}', 'CallsAPIController@form'); Route::resource('calls', 'CallsAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for calls Route::prefix('{guard}/call')->group(function () { Route::get('calls/form/{element}', 'CallsAPIController@form'); Route::apiResource('calls', 'CallsAPIController'); }); // Public routes for calls Route::get('call/Calls', 'CallsPublicController@getCalls'); } ); }