通过php artisan route:list 可以看到当前应用的路由情况,

在前端页面中如果要修改一个实体,需要用到实体.update,涉及的uri为实体/{实体},所用的http方法为put.

在表单中action可以有两种写法

{{url('workplace/'.$workplaceid)}} 或者 {{__('workplace/'.$workplaceid)}}

{{route('workplace.update',['id'=>$workplaceid])}}


uri的表现形式可以通过url函数和route函数相互转换,一些例子

route('maintainer.update',['id'=>$m['id']])

等价于
url('/maintainer/'.$m['id'])

{{ url('maintainer/'.$m['id'].'/edit') }}

等价于
{{route('maintainer.edit',['id'=>$m['id']])}}

最新文章

  1. 揭秘JavaScript中谜一样的this
  2. grunt 执行
  3. ios多线程和进程的区别(转载)
  4. HotSpot算法实现
  5. wpa_supplicant 和 802.11g WPA 认证的配置
  6. 【C#多线程】C#多线程 Thread 开发基础
  7. GitHub以及Git学习 持续编辑学习中
  8. python打造一个Mysql数字类型注入脚本(1)
  9. session效率
  10. Shell 自动安装 JDK
  11. python 对excel操作用法详解
  12. what is API
  13. TypeScript 版本相关
  14. PAT 1003 Emergency
  15. [LeetCode&Python] Problem 383. Ransom Note
  16. Go学习笔记 - 关于Java、Python、Go编程思想的不同
  17. HttpClient使用
  18. swift学习之-- UIAlertViewController -alert
  19. Linux nl --让输出的文件内容自动加上行号
  20. C#学习笔记-代理模式

热门文章

  1. Maven项目-端口被占用java.net.BindException: Address already in use: JVM_Bind <null>:8080解决方法
  2. package.json中一些配置项的含义
  3. IE 样式属性前后缀兼容写法略统计
  4. 一文解读CDN (转)
  5. jquery的优点
  6. 【剑指Offer面试编程题】题目1512:用两个栈实现队列--九度OJ
  7. P1250 种树 题解
  8. IDEA中如何部署tomcat
  9. vue - 封装input
  10. 引用类型--Date类型