php - How to use an apiResource route parameter with where clause in laravel

one text

Solution:

You may pass options as the third argument to the Route::apiResource method like this:

Route::apiResource('/admin/{category}/attributes', 'AttributeController', [
    'where' => ['category' => 'industries|professions|studies|experiences|locations']
]);

Source