php学习笔记

1, 自动创建控制器:

php artisan make:controller Photo/PhotoController

资源控制器处理的行为

动词路径动作路由名称
GET /resource index resource.index
GET /resource/create create resource.create
POST /resource store resource.store
GET /resource/{resource} show resource.show
GET /resource/{resource}/edit edit resource.edit
PUT/PATCH /resource/{resource} update resource.update
DELETE /resource/{resource} destroy resource.destroy
posted @ 2017-12-21 01:07  MvloveYouForever  阅读(122)  评论(0编辑  收藏  举报