简体   繁体   English

从 laravel nova 工具中删除侧边栏

[英]Remove sidebar from laravel nova tool

So as the title suggests im looking at trying to remove the sidebar from a laravel nova tool i have created that we are looking at putting up on a tv to show sales stats.因此,正如标题所暗示的那样,我正在考虑尝试从我创建的 laravel nova 工具中删除侧边栏,我们正在考虑将其放在电视上以显示销售统计数据。 I would prefer not to have to put the board up with the navigation我宁愿不必把板子放在导航上

Here is a simple way to do this:这是一个简单的方法来做到这一点:

copy the file in vendor/laravel/nova/resources/views/layout.blade.php and put it in /resources/views/vendor/nova.将 vendor/laravel/nova/resources/views/layout.blade.php 中的文件复制到 /resources/views/vendor/nova 中。

You will then have control of the main Laravel nova layout and can add code to hide the sidebar when you are in the custom tool.然后,您将控制主要的 Laravel nova 布局,并且可以添加代码以在使用自定义工具时隐藏侧边栏。 You can copy over the rest of the views while you are at it.您可以复制 rest 的视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM