Skip to content

Commit

Permalink
Awesomeness
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 5, 2024
1 parent ec640c3 commit 2fc04b5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions wave/resources/views/install.blade.php
Original file line number Diff line number Diff line change
@@ -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

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -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'), '');
}
Expand Down

0 comments on commit 2fc04b5

Please sign in to comment.