'api'], function ($router) { Route::group(['middleware' => ['locale', 'currency']], function ($router) { //Channel routes Route::get('channels',[Channels::class, 'index']); //category routes Route::get('descendant-categories', [Categories::class, 'index']); Route::get('category-brands/{id}', [Categories::class, 'brands']); //attributes by code Route::get('attribute-by-code/{code}', [Resources::class, 'get'])->defaults('_config', [ 'repository' => AttributeRepository::class, 'resource' => Attribute::class, ]); }); });