坏蛋的博客
非淡泊无以明志 非宁静无以致远
使用以下方法从URL中检索出模型的ID然后手工执行查询
request()->route()->parameters()['路由名'];
在laravel-admin 1.8.9版本中是 request()->route()->parameters()[‘ID名’]; ID名是你在route.php配置中的那个名词
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Click the image to refresh Captcha *
在laravel-admin 1.8.9版本中是
request()->route()->parameters()[‘ID名’];
ID名是你在route.php配置中的那个名词