如何在Request :: url()中删除“search”?

问题描述 投票:0回答:1

我正在设置一个嵌套资源来管理基于本教程的用户帖子:qazxsw poi。

问题是按钮中的Request :: url()生成的URL添加了“search”,如下所示:

https://backpackforlaravel.com/articles/tutorials/nested-resources-in-backpack-crud

注意URL中的“搜索”术语。那应该在那里。那么如何正确删除呢?

backpack-for-laravel
1个回答
0
投票

我有同样的问题

<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

为我修好了

© www.soinside.com 2019 - 2024. All rights reserved.