📜  laravel 制作 api 资源 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:07.705000             🧑  作者: Mango

代码示例3
GET -        "/photos/{photo}/comments" - index
GET -        "/photos/{photo}/comments/create" - create
POST -        "/photos/{photo}/comments" - store
GET -        "/comments/{comment}" - show
GET -        "/comments/{comment}/edit" - edit
PUT/PATCH -    "/comments/{comment}" - update
DELETE -    "/comments/{comment}" - destroy