Download the PHP package norman-huth/nova-assets-changer without Composer
On this page you can find all versions of the php package norman-huth/nova-assets-changer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download norman-huth/nova-assets-changer
More information about norman-huth/nova-assets-changer
Files in norman-huth/nova-assets-changer
Package nova-assets-changer
Short Description Change Nova resources
License MIT
Homepage https://github.com/Muetze42/nova-assets-changer
Informations about the package nova-assets-changer
Nova Assets Changer
This package is for Nova 4 and swaps the resources from the resources/Nova/Nova
folder with those in
the vendor/laravel/nova/resources/js
folder or use the php artisan custom-assets:publish
command.
Then the assets are recompiled and published with the Force option.
This package creates a backup of each file and checks for changes
Attention. The original vendor files will be overwritten.
IMPORTANT
You must run the php artisan nova:custom-assets
after every composer update!
Tip: You can replace @php artisan nova:publish
with @php artisan custom-assets:after-composer-update
in
Your composer.json
Install
Running
For the full process run this command:
Optional
Run Command Only If A Nova Update Is Detected (Or The Package Has No Version Saved)
Publish Nova Assets Via Command
Publish Nova Field Assets Via Command (experimental)
Notice
After a Nova update, you need to check your resource files to see if they are still compatible.
Examples
I make not a release for every example. For all example resources take a look in the resources
folder of the GitHub
repository.
⚠️ These files are all based on one of the first Nova 4 releases and serve only as an example! ⚠️
Other Composer Or NPM Command
Create a command:
php artisan make:command CustomAssetsCommand
with followingen content:
Add Custom CSS
Create resources/Nova/custom.css
with Your custom CSS.
Register new pages
Example: Register Page