Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Adding Laravel Octane Support #58

Merged
merged 1 commit into from
Jul 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Laravel\Nova\Nova;
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;

class ToolServiceProvider extends ServiceProvider
{
Expand All @@ -14,7 +15,9 @@ class ToolServiceProvider extends ServiceProvider
*/
public function boot()
{
Nova::script('detached-actions', __DIR__. '/../dist/js/tool.js');
Nova::serving(function (ServingNova $event) {
Nova::script('detached-actions', __DIR__. '/../dist/js/tool.js');
});
}

/**
Expand Down