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');
}