argument('type')) . 's\\' . ucfirst($this->argument('name')) . '\\' . ucfirst($this->argument('name')); if (!class_exists($extensionClass)) { return $this->error("The extension class {$extensionClass} does not exist."); } $extensionInstance = new $extensionClass; if (method_exists($extensionInstance, 'installed')) { try { $extensionInstance->installed(); } catch (\Exception $e) { Log::error("Error during installation of extension {$this->argument('name')}: " . $e->getMessage()); return $this->error('An error occurred while installing the extension: ' . $e->getMessage()); } } } }