Laravel Route apiResource

Laravel Route apiResource

I'm using&nbsp;<code>apiResource</code>&nbsp;in Route which is using&nbsp;<code>(index, create, show, update, destroy)</code>&nbsp;methods in&nbsp;<code>exampleController</code>. When I would like to use show method the route wont work. what shall I do? I think it is because of&nbsp;<code>{fruits}</code>&nbsp;but I do not how solve it?

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


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Laravel API Response - Simple Laravel API response wrapper

Laravel API Response is a good package that we can use to create API responses easily.

Create web api project

LIKE | COMMENT | SHARE | SUBSCRIBE Web API with MVC Project Visual Studio (2013/2015/2017/2019) includes Web API template which creates a new Web API project...

Create Api controller and action

LIKE | COMMENT | SHARE | SUBSCRIBE Web API Controller We created Web API with MVC project in the previous section where it generated a simple controller. Her...