From 2fc04b5e75079344209c59eeed9330c83ca1168e Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Fri, 4 Oct 2024 20:00:29 -0400 Subject: [PATCH] Awesomeness --- wave/resources/views/install.blade.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/wave/resources/views/install.blade.php b/wave/resources/views/install.blade.php index b51492e5e..7a99a1277 100644 --- a/wave/resources/views/install.blade.php +++ b/wave/resources/views/install.blade.php @@ -1,15 +1,5 @@ @if(app()->isLocal()) - @php - try { - $user = \App\Models\User::first(); - header('Location: /'); - exit; - } catch (\Illuminate\Database\QueryException $e) { - // Continue with the installation process - } - @endphp - @@ -50,6 +40,15 @@ @else @php + + try { + $user = \App\Models\User::first(); + header('Location: /'); + exit; + } catch (\Illuminate\Database\QueryException $e) { + // Continue with the installation process + } + if (!\Illuminate\Support\Facades\File::exists(database_path('database.sqlite'))) { \Illuminate\Support\Facades\File::put(database_path('database.sqlite'), ''); }