norman-huth/nova-hide-navigation

Hiding Sidebar, Header or Footer in Laravel Nova.

Fund package maintenance!
Muetze42
Ko Fi
huth.it/coffee

Installs: 382

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

v1.0.0 2023-11-04 17:28 UTC

This package is auto-updated.

Last update: 2024-07-04 18:47:19 UTC


README

Nova Hide Navigation

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. ☕

Live Preview

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;',
];

More Laravel Nova Packages

Stand With Ukraine