group(function () { Route::get('kategori/form/{element}', 'KategoriAPIController@form'); Route::resource('kategori', 'KategoriAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for poslilgs Route::prefix('{guard}/poslilg')->group(function () { Route::get('kategori/form/{element}', 'KategoriAPIController@form'); Route::apiResource('kategori', 'KategoriAPIController'); }); // Public routes for poslilgs Route::get('poslilg/Kategori', 'KategoriPublicController@getKategori'); } ); }