Laravel-admin的Form中获取模型的方法 2019年10月9日 · 绝世坏蛋 使用以下方法从URL中检索出模型的ID然后手工执行查询 request()->route()->parameters()['路由名']; Comments One response to “Laravel-admin的Form中获取模型的方法” Williamslife 2021年1月18日 在laravel-admin 1.8.9版本中是 request()->route()->parameters()[‘ID名’]; ID名是你在route.php配置中的那个名词 Reply Leave a Reply Cancel replyYour 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 *
Williamslife 2021年1月18日 在laravel-admin 1.8.9版本中是 request()->route()->parameters()[‘ID名’]; ID名是你在route.php配置中的那个名词 Reply
Leave a Reply