mirror of
https://github.com/KevinMidboe/nova-map-fields.git
synced 2026-03-11 09:35:56 +00:00
First commit.
This commit is contained in:
28
src/FieldServiceProvider.php
Executable file
28
src/FieldServiceProvider.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Lassehaslev\NovaMapFields;
|
||||
|
||||
use Laravel\Nova\Nova;
|
||||
use Laravel\Nova\Events\ServingNova;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class FieldServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
Nova::serving(function (ServingNova $event) {
|
||||
Nova::script('nova-map-fields', __DIR__.'/../dist/js/field.js');
|
||||
Nova::style('nova-map-fields', __DIR__.'/../dist/css/field.css');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Register any application services.
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user