Skip to content

Commit

Permalink
Merge pull request #3 from awcodes/fix/livewire-registration
Browse files Browse the repository at this point in the history
Fix: missing livewire registration for custom dashboard implementation
  • Loading branch information
awcodes authored Mar 16, 2023
2 parents b0e0d91 + 7c5d326 commit c8ff612
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 c8ff612

Please sign in to comment.