From 8897c4818c9269136f8cc2b9ee254c30ac7d77ac Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 9 May 2024 17:56:50 +0300 Subject: [PATCH] Update Installer.php --- web/app/Livewire/Installer.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/web/app/Livewire/Installer.php b/web/app/Livewire/Installer.php index b122ee42..a64ef0ea 100644 --- a/web/app/Livewire/Installer.php +++ b/web/app/Livewire/Installer.php @@ -300,6 +300,9 @@ public function installLog() $this->install_log = nl2br($this->install_log); if (strpos($this->install_log, 'DONE!') !== false) { + + file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s')); + return redirect('/admin/login'); } @@ -308,11 +311,4 @@ public function installLog() } } - public function install() - { - file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s')); - - return redirect('/admin/login'); - } - }