PHPackages                             akki-io/laravel-nova-assets - 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. akki-io/laravel-nova-assets

ActiveLibrary

akki-io/laravel-nova-assets
===========================

A simple package for laravel nova to manage all nova related assets.

v1.1(4y ago)318MITPHPPHP ^7.3|^8.0

Since Dec 25Pushed 4y agoCompare

[ Source](https://github.com/akki-io/laravel-nova-assets)[ Packagist](https://packagist.org/packages/akki-io/laravel-nova-assets)[ Docs](https://github.com/akki-io/laravel-nova-assets)[ RSS](/packages/akki-io-laravel-nova-assets/feed)WikiDiscussions master Synced 1mo ago

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

 [![Hero](https://raw.githubusercontent.com/akki-io/laravel-nova-assets/master/hero.png)](https://raw.githubusercontent.com/akki-io/laravel-nova-assets/master/hero.png)

Laravel Nova Search
===================

[](#laravel-nova-search)

[![Latest Version](https://camo.githubusercontent.com/3ecb0f594cf508f8ddbdbbc8792d725aaef0eadd17b89d214b53d3cd832a706d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616b6b692d696f2f6c61726176656c2d6e6f76612d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://github.com/akki-io/laravel-nova-assets/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![StyleCI](https://camo.githubusercontent.com/deb89f3497b47ab48b863c6fd6d24abd31bd6ed0c255c24c24ac57e865c2f4f0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3434313733353134322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/441735142)[![Total Downloads](https://camo.githubusercontent.com/9a579b353d0704f57ec1ecd533a8410a778e64233da805c4009d081c62677cbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616b6b692d696f2f6c61726176656c2d6e6f76612d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akki-io/laravel-nova-assets)

This package provides a console command to convert dynamic JS/CSS to static JS/CSS assets.

Requirements
------------

[](#requirements)

- laravel-mix v6.0+
- php 7.3+
- laravel nova 3.0+

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require akki-io/laravel-nova-assets
```

Publish the package files:

```
php artisan vendor:publish --provider 'AkkiIo\LaravelNovaAssets\LaravelNovaAssetsServiceProvider'
```

This will publish the

- config file `config/laravel-nova-assets.php` and
- the webpack file `webpack.mix.nova.js`.

Usage
-----

[](#usage)

To create static assets the package provides a simple console command that will do the job for you.

Run

```
php artisan nova:mix
```

Once the command is executed you will need to update the laravel nova auth layout `auth->layout.blade.php` and main layout `layout.blade.php` to use the compiled assets.

- Copy the auth layout `vendor/laravel/nova/resources/views/auth/layout.blade.php` to `resources/views/vendor/nova/auth/layout.blade.php`
- Copy the main layout `vendor/laravel/nova/resources/views/layout.blade.php` to `resources/views/vendor/nova/layout.blade.php`

Add manifest files above the `` tag for both files.

```

```

Replace these following section in the newly copied files.

Original Content

```
// Tool Styles
@foreach(\Laravel\Nova\Nova::availableStyles(....
    ....
@endforeach
```

New Content

```

```

---

Original Content

```

@foreach(\Laravel\Nova\Nova::themeStyles() ...)
    ....
@endforeach
```

New Content

```

```

---

Original Content

```

@foreach (\Laravel\Nova\Nova::availableScripts(request()) ...)
.....
@endforeach
```

New Content

```

```

---

If you are using custom scripts and styles, add the following sections to these files accordingly.

```

```

```

```

**For copyright reason I cannot include those files in this project.**

### Adding custom CSS and JSS

[](#adding-custom-css-and-jss)

You can specify you custom CSS/JS in the config file `laravel-nova-assets.php` under the `styles` and `scripts` section.

### Running the command on a CI/CD

[](#running-the-command-on-a-cicd)

You will need to create a dummy user if you are using this command to generate assets. Unfortunately, I was not able to find a work around for this.

Using CDN
---------

[](#using-cdn)

There are few packages that already provides this feature, some of these are

- `arubacao/asset-cdn` -
- `publiux/laravelcdn` -

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Akki Khare](https://github.com/akki-io)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1599d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e14e68b3ae58f56193332356b226c47e11512dc4520ab60918a9aa1958eff252?d=identicon)[akki-io](/maintainers/akki-io)

---

Top Contributors

[![akki-io](https://avatars.githubusercontent.com/u/34255218?v=4)](https://github.com/akki-io "akki-io (9 commits)")

---

Tags

laravel-novaakki-iolaravel-nova-assets

### Embed Badge

![Health badge](/badges/akki-io-laravel-nova-assets/health.svg)

```
[![Health](https://phpackages.com/badges/akki-io-laravel-nova-assets/health.svg)](https://phpackages.com/packages/akki-io-laravel-nova-assets)
```

###  Alternatives

[maatwebsite/laravel-nova-excel

Supercharged Excel exports for Laravel Nova Resources

3986.2M5](/packages/maatwebsite-laravel-nova-excel)[mostafaznv/laracache

LaraCache is a customizable cache trait to cache queries on model's events

27246.8k1](/packages/mostafaznv-laracache)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)[optimistdigital/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45305.4k](/packages/optimistdigital-nova-multiselect-filter)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)[laravel/nova-devtool

Devtool for Laravel Nova Development

31389.3k134](/packages/laravel-nova-devtool)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
