getAppVersion(), ) === 0 ) { $this->middleware('isAdmin'); } } public function show() { $data = (new CheckSiteHealth())->execute(); return view('common::install/update')->with($data); } public function performUpdate() { (new UpdateActions())->execute(); return view('common::install/update-complete'); } private function getAppVersion(): string { try { return (new DotEnvEditor('env.example'))->load()['app_version']; } catch (Exception $e) { return config('common.site.version'); } } }