init
Tests / metadata (push) Canceled after 0s
Tests / nova-credentials (push) Canceled after 0s
Tests / PHP 8.2 (push) Canceled after 0s
Tests / PHP 8.3 (push) Canceled after 0s
Tests / PHP 8.4 (push) Canceled after 0s
Tests / PHP 8.5 (push) Canceled after 0s
Tests / metadata (push) Canceled after 0s
Tests / nova-credentials (push) Canceled after 0s
Tests / PHP 8.2 (push) Canceled after 0s
Tests / PHP 8.3 (push) Canceled after 0s
Tests / PHP 8.4 (push) Canceled after 0s
Tests / PHP 8.5 (push) Canceled after 0s
This commit is contained in:
19 files changed
+1102
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace MeghdadFadaee\NovaFormDock;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Nova\Nova;
|
||||
|
||||
class NovaFormDockServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->mergeConfigFrom(
|
||||
__DIR__.'/../config/nova-form-dock.php',
|
||||
'nova-form-dock',
|
||||
);
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
$this->publishes([
|
||||
__DIR__.'/../config/nova-form-dock.php' => config_path('nova-form-dock.php'),
|
||||
], 'nova-form-dock-config');
|
||||
|
||||
if (! config('nova-form-dock.enabled', true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Nova::serving(function (): void {
|
||||
Nova::style('nova-form-dock', __DIR__.'/../dist/css/form-dock.css');
|
||||
Nova::script('nova-form-dock', __DIR__.'/../dist/js/form-dock.js');
|
||||
Nova::provideToScript([
|
||||
'novaFormDock' => config('nova-form-dock'),
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user