First commit.

This commit is contained in:
Lasse S. Haslev
2020-10-25 18:34:21 +01:00
commit 97065c0377
22 changed files with 26186 additions and 0 deletions

28
src/FieldServiceProvider.php Executable file
View 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()
{
}
}