Merge pull request #336 from Boy132/fix/default-database-path

Use env value instead of config value for database path
This commit is contained in:
Charles 2024-06-06 06:09:51 -04:00 committed by GitHub
commit e3699f34d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@ class DatabaseSettingsCommand extends Command
} elseif ($this->variables['DB_CONNECTION'] === 'sqlite') {
$this->variables['DB_DATABASE'] = $this->option('database') ?? $this->ask(
'Database Path',
config('database.connections.sqlite.database', 'database.sqlite')
env('DB_DATABASE', 'database.sqlite')
);
}