Verb | URI | Action | Route Name | 作用 |
GET | /issues | index | issues.index | 列表显示所有的issues |
GET | /issues/create | create | issues.create | 显示新增issue的表单 |
POST | /issues | store | issues.store | 真正执行新增操作,插入数据库 |
GET | /issues/{issue} | show | issues.show | 显示一条issue |
GET | /issues/{issue}/edit | edit | issues.edit | 显示编辑issue的表单 |
PUT/PATCH | /issues/{issue} | update | issues.update | 真正执行更新操作,修改数据库 |
DELETE | /issues/{issue} | destory | issues.destroy | 删除issue |
转载于:https://www.cnblogs.com/BrokenHeart/p/10614970.html