wdelfuego / nova4-customizable-footer
Customizable footer for Laravel's Nova 4
Installs: 1 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- laravel/nova: ^4.3
README
Version 1.0.3 is the final version of this package.
As of Nova 4.3, footer customization is available natively in Nova.
This package is no longer necessary and has been reduced to a wrapper around the native functionality for compatibility reasons, so that developers who don't switch to the native solution don't keep depending on the workaround implemented by previous versions of this package. Read on for the original (< 1.0.3) documentation of this package.
This package reintroduces footer customization to Laravel's Nova 4.
Installation
Add the dependency to your project's composer.json
:
composer require wdelfuego/nova4-customizable-footer
This package sets the default footer content to an empty string, so if you only wanted to remove the default footer you are now done.
Customizing the footer
-
Open
app/Providers/NovaServiceProvider.php
and add a use statement forWdelfuego\Nova4\CustomizableFooter\Footer
. -
In the
boot
method of that class, set your custom footer content by supplying the raw HTML:
Footer::set('<p class="text-center">Your own footer HTML</p>');
Word of warning
This package works by updating the DOM after the Nova interface has been loaded successfully. Finding the footer element in the DOM is not an instantaneous process, the original footer content may still be visible to the end user for a brief moment. This typically only happens when the user first loads Nova.