Assets

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

MoonShine can include any of your css and js files by adding them to the MoonShineServiceProvider

use MoonShine\Utilities\AssetManager;
 
class MoonShineServiceProvider extends ServiceProvider
{
//...
public function boot(): void
{
//...
app(AssetManager::class)->add([
'/css/style.css',
'/js/main.js',
]);
//...
}
//...
}