[ 'required', Rule::in($this->site->server->installedPHPVersions()), ], 'version' => 'required', ]; } public function createFields(array $input): array { return [ 'web_directory' => '', 'php_version' => $input['php_version'] ?? '', ]; } public function data(array $input): array { return [ 'version' => $input['version'], ]; } public function install(): void { /** @var Webserver $webserver */ $webserver = $this->site->server->webserver()->handler(); $webserver->createVHost($this->site); $this->progress(30); app(\App\SSH\PHPMyAdmin\PHPMyAdmin::class)->install($this->site); $this->progress(65); $this->site->php()?->restart(); } }