Files
online.tbbank.gov.tm-larave…/nova-components/NovaCustomHtml/src/FieldServiceProvider.php
2024-10-01 19:07:23 +05:00

34 lines
690 B
PHP

<?php
namespace Nurmuhammet\NovaCustomHtml;
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
class FieldServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Nova::serving(function (ServingNova $event) {
Nova::script('nova-custom-html', __DIR__.'/../dist/js/field.js');
Nova::style('nova-custom-html', __DIR__.'/../dist/css/field.css');
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}