norman-huth / nova-hide-navigation
Hiding Sidebar, Header or Footer in Laravel Nova.
Fund package maintenance!
Muetze42
Ko Fi
huth.it/coffee
Installs: 492
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
Language:JavaScript
Requires
- php: ^7.3|^8.0
README
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. ☕
Installation
composer require norman-huth/nova-hide-navigation
Usage
Add hide
query param to the Nova url.
Hide Nova Header
https://my-nova.app/dashboards/main?hide=h
Hide Nova Sidebar
https://my-nova.app/dashboards/main?hide=s
Hide Nova Footer
https://my-nova.app/dashboards/main?hide=f
Combine
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
Hide Header, Sidebar and Footer
https://my-nova.app/dashboards/main?hide=all
Optional: Add Custom CSS Code To The Content Container
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;', ];