I'm using apiResource
in Route which is using (index, create, show, update, destroy)
methods in exampleController
. When I would like to use show method the route wont work. what shall I do? I think it is because of {fruits}
but I do not how solve it?
Route::apiResource('/fruit/{fruits}/apples', 'exampleController');
My route in browser is:
localhost:8000/api/fruits/testFruitSlug/apples/testAppleSlug
#api #laravel