PHPackages                             uptime-it/nova-assets-changer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. uptime-it/nova-assets-changer

ActiveLibrary

uptime-it/nova-assets-changer
=============================

Change Nova resources

1.2.2(1y ago)016MITVue

Since Dec 16Pushed 1y agoCompare

[ Source](https://github.com/uptime-it/nova-assets-changer)[ Packagist](https://packagist.org/packages/uptime-it/nova-assets-changer)[ Docs](https://github.com/Muetze42/nova-assets-changer)[ Fund](https://huth.it/coffee)[ GitHub Sponsors](https://github.com/Muetze42)[ RSS](/packages/uptime-it-nova-assets-changer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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
=========

[](#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
-------

[](#install)

```
composer require norman-huth/nova-assets-changer --dev

```

### Running

[](#running)

For the full process run this command:

```
php artisan nova:custom-assets

```

### Optional

[](#optional)

#### Run Command Only If A Nova Update Is Detected (Or The Package Has No Version Saved)

[](#run-command-only-if-a-nova-update-is-detected-or-the-package-has-no-version-saved)

```
php artisan custom-assets:after-composer-update

```

#### Publish Nova Assets Via Command

[](#publish-nova-assets-via-command)

```
php artisan custom-assets:publish

```

#### Publish Nova Field Assets Via Command (experimental)

[](#publish-nova-field-assets-via-command-experimental)

```
php artisan custom-assets:publish:field

```

Notice
------

[](#notice)

After a Nova update, you need to check your resource files to see if they are still compatible.

Examples
--------

[](#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
-----------------------------

[](#other-composer-or-npm-command)

Create a command: `php artisan make:command CustomAssetsCommand`

with followingen content:

```
