You route is defined wrong.
(您的路线定义错误。)
route::get('/info-admin/{$info}/edit','InfosController@edit');
Should be without $
and name the route for easier linking.
(应该没有$
并命名路由以便于链接。)
route::get('/info-admin/{info}/edit','InfosController@edit')->name('infos.edit');
Instead of hard coding it, use route as you do with destroy on the edit link too.
(除了使用硬编码之外,还可以像在编辑链接上使用destroy一样使用route。)
<a href="{{ route('infos.edit', [$infos->id]) }}">
To check if you routes are defined correctly, try running in the project.
(要检查路由定义是否正确,请尝试在项目中运行。)
php artisan route:list
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…