我已经 2 周没有碰我的代码了,我不知道今天发生了什么,因为我在 .edit 路由上遇到了这个错误
Illuminate\Routing\Exceptions\UrlGenerationException 缺少 [Route: admin.doctor.edit] [URI: admin/doctor/{doctor}/edit] [缺少参数:doctor] 的必需参数。
错误示例
http://127.0.0.1:8000/admin/doctor/28
http://127.0.0.1:8000/admin/user/3
请在下面找到完整的代码
答案 0 :(得分:0)
您附加的链接已损坏,
但是看起来您想要的是“医生 ID”而不是 {doctor}