Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何将Laravel自定义新星工具设置为链接_Php_Laravel_Laravel 7_Laravel Nova - Fatal编程技术网

Php 如何将Laravel自定义新星工具设置为链接

Php 如何将Laravel自定义新星工具设置为链接,php,laravel,laravel-7,laravel-nova,Php,Laravel,Laravel 7,Laravel Nova,我正在使用 Laravel: 7.x Nova: v3.8.2 我想在2个不同的资源中添加到特定镜头的链接,因为我认为我应该使用Nova工具来实现这一点 我用 php artisan nova:tool noad/sidebar-linker 我在中添加了第二个视图文件(我需要侧边栏中的2个链接) 它显示得很好,支持本地化,但我有一个问题,如何使重定向工作,我的 // navigation2.blade.php in dir: nova-components\SidebarLinker\

我正在使用

Laravel: 7.x

Nova:  v3.8.2
我想在2个不同的资源中添加到特定镜头的链接,因为我认为我应该使用Nova工具来实现这一点

我用

php artisan nova:tool noad/sidebar-linker
我在中添加了第二个视图文件(我需要侧边栏中的2个链接)

它显示得很好,支持本地化,但我有一个问题,如何使重定向工作,我的
// navigation2.blade.php in dir: nova-components\SidebarLinker\resources\views\

<router-link tag="h3" :to="{name: 'sidebar-linker'}" class="cursor-pointer flex items-center font-normal dim text-white mb-6 text-base no-underline">
<span class="text-white sidebar-label">
     <a href="resources/markets/lens/company-markets" class="text-white sidebar-label">{{__('Sidebar Linker2')}}</a>
</span>
public function renderNavigation()
{
    return view('sidebar-linker::navigation').view('sidebar-linker::navigation2');
}