public function boot(Dispatcher $events) { $events->listen(ExtensionWasEnabled::class, [$this, 'flushFormatter']); $events->listen(ExtensionWasDisabled::class, [$this, 'flushFormatter']); }