Answers for "apiresource call show"

0

apiresource call show

For a resource, show, store, update, index methods are reserved. Here is how it is going to work:

A GET call on the route without any ID will call the index() method
A GET call on the route with a resource ID will call the show() method
A POST call on the route will call the store() method
A PATCH call on a route with ID will call the update() method
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language