group(function () { Route::resource('kategori', 'KategoriResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'KategoriResourceController'); }); // Public routes for pages Route::get('poslilgs/', 'KategoriPublicController@index'); Route::get('poslilgs/{slug?}', 'KategoriPublicController@show'); } ); }