壞蛋的博客
非淡泊無以明志 非寧靜無以致遠
使用以下方法從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配置中的那個名詞