Hiding Sidebar, Header or Footer in Laravel Nova.
Just a small package. Useful if, for example, you want to use the Nova Dashboard on a smart TV in the office or
something. ☕
composer require norman-huth/nova-hide-navigation
Add hide
query param to the Nova url.
https://my-nova.app/dashboards/main?hide=h
https://my-nova.app/dashboards/main?hide=s
https://my-nova.app/dashboards/main?hide=f
Examples
https://my-nova.app/dashboards/main?hide=fs
https://my-nova.app/dashboards/main?hide=hs
https://my-nova.app/dashboards/main?hide=hf
https://my-nova.app/dashboards/main?hide=all
Publish the config file and set up:
php artisan vendor:publish --provider="NormanHuth\NovaHideNavigation\AssetServiceProvider"
Example:
<?php
return [
'if_hide_header' => 'padding-top: 1.0rem;',
'if_hide_sidebar' => 'padding-left: 1.5rem;padding-right: 1.5rem;',
'if_hide_footer' => 'padding-bottom: 1.5rem;',
];