Skip to content

Commit

Permalink
fix: register panel provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ast21 committed Oct 22, 2024
1 parent fbc1eec commit cc8737f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function registeringPackage()

$this->registerConfigs();

$this->app->register(config('admin-kit.panel.provider'));
$this->registerPanelProvider();

$this->app->register(MiddlewareServiceProvider::class);

$this->configureTimezoneForFilament();
Expand Down Expand Up @@ -82,4 +83,11 @@ protected function registerHelperFile(): void
{
require_once __DIR__.'/helpers.php';
}

protected function registerPanelProvider(): void
{
$panelProvider = config('admin-kit.panel.provider', \AdminKit\Core\Providers\FilamentPanelProvider::class);

$this->app->register($panelProvider);
}
}

0 comments on commit cc8737f

Please sign in to comment.