我正在设置一个嵌套资源来管理基于本教程的用户帖子:qazxsw poi。
问题是按钮中的Request :: url()生成的URL添加了“search”,如下所示:
https://backpackforlaravel.com/articles/tutorials/nested-resources-in-backpack-crud
注意URL中的“搜索”术语。那应该在那里。那么如何正确删除呢?
我有同样的问题
<a href="{{ Request::url().'/'.$entry->getKey() }}/post" class="btn btn-xs btn-default">See Posts</a>
// outputs the URL
// http://awesome.app/admin/user/search/99/post
为我修好了