laravel报错 No query results for model [App\Post]. 的解决方法

这个通常由路由绑定出的问题,注意有绑定模型的路由,同路径的路由需要放在没绑定路由的后面

例如:/posts/create 和/posts/{post}的是同路径,/posts/{post}必须放在/posts/create 后面

猜你喜欢

转载自blog.csdn.net/sqlquan/article/details/81153835