parameters(['marcas' => 'marca']); Route::apiResource('categorias', CategoryController::class)->parameters(['categorias' => 'categoria']); Route::apiResource('productos', ProductController::class); Route::apiResource('product-attributes', ProductAttributeController::class) ->parameters(['product-attributes' => 'productAttribute']);