group(function () { Route::get('bank/form/{element}', 'BankAPIController@form'); Route::resource('bank', 'BankAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for banks Route::prefix('{guard}/bank')->group(function () { Route::get('bank/form/{element}', 'BankAPIController@form'); Route::apiResource('bank', 'BankAPIController'); }); // Public routes for banks Route::get('bank/Bank', 'BankPublicController@getBank'); } ); }