configure(); return $static; } public function default(bool $condition = true): static { $this->isDefault = $condition; return $this; } public function register(): void { $this->registerLivewireComponents(); $this->registerLivewirePersistentMiddleware(); } public function boot(): void { FilamentColor::register($this->colors); FilamentIcon::register($this->icons); FilamentView::spa($this->hasSpaMode()); $this->registerRenderHooks(); foreach ($this->plugins as $plugin) { $plugin->boot($this); } if ($callback = $this->bootUsing) { $callback($this); } } public function bootUsing(?Closure $callback): static { $this->bootUsing = $callback; return $this; } public function isDefault(): bool { return $this->isDefault; } }