Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Sep 8, 2022
1 parent 540b326 commit 02399aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
use Laravel\Nova\Script;

class LaravelServiceProvider extends ServiceProvider
{
Expand All @@ -16,7 +17,9 @@ class LaravelServiceProvider extends ServiceProvider
public function boot()
{
Nova::serving(function (ServingNova $event) {
Nova::remoteScript(mix('tool.js', 'vendor/nova-kit/nova-packages-tool'));
array_unshift(
Nova::$scripts, Script::remote(mix('tool.js', 'vendor/nova-kit/nova-packages-tool'))
);
});

$this->publishes([
Expand Down

0 comments on commit 02399aa

Please sign in to comment.