Skip to content

Commit

Permalink
Merge pull request #120 from andrewdwallo/fix-component-register
Browse files Browse the repository at this point in the history
fix: defer route and component registration
  • Loading branch information
andrewdwallo committed Feb 1, 2024
2 parents d6631ad + caf062b commit eef168d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FilamentCompaniesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Wallo\FilamentCompanies;

use Filament\Facades\Filament;
use Illuminate\Support\ServiceProvider;
use Livewire\Livewire;
use Wallo\FilamentCompanies\Http\Livewire\CompanyEmployeeManager;
Expand Down Expand Up @@ -34,9 +35,12 @@ public function boot(): void
$this->loadTranslationsFrom(__DIR__.'/../lang', 'filament-companies');

$this->configurePublishing();
$this->configureRoutes();
$this->configureCommands();
$this->configureComponents();

Filament::serving(function () {
$this->configureRoutes();
$this->configureComponents();
});
}

/**
Expand Down

0 comments on commit eef168d

Please sign in to comment.