Skip to content

Instantly share code, notes, and snippets.

@richartkeil
Last active October 12, 2018 08:30
Show Gist options
  • Save richartkeil/b61bcc2b70235a7a13141b3d0d572e7c to your computer and use it in GitHub Desktop.
Save richartkeil/b61bcc2b70235a7a13141b3d0d572e7c to your computer and use it in GitHub Desktop.
Custom Card in Laravel Nova - Service Provider 1
<?php
// ...
public function boot()
{
parent::boot();
// Let Nova know where your compiled assets will be.
Nova::serving(function (ServingNova $event) {
// Only add the following line if you don't use Single File
// Components and plan to compile CSS separately.
// Nova::style('nova', public_path('assets/css/nova.css'));
Nova::script('nova', public_path('assets/js/nova.js'));
});
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment