Skip to content

Commit

Permalink
Fix: missing livewire registration for custom dashboard implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Mar 16, 2023
1 parent b0e0d91 commit 7c5d326
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/OverlookServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Composer\InstalledVersions;
use Filament\PluginServiceProvider;
use Livewire\Livewire;
use Spatie\LaravelPackageTools\Package;

class OverlookServiceProvider extends PluginServiceProvider
Expand All @@ -30,4 +31,9 @@ protected function getStyles(): array
'plugin-overlook-' . static::$version => __DIR__ . '/../resources/dist/overlook.css'
];
}

public function packageBooted(): void
{
Livewire::component('overlook-widget', Overlook::class);
}
}

0 comments on commit 7c5d326

Please sign in to comment.