📅  最后修改于: 2022-03-11 15:00:47.458000             🧑  作者: Mango
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