fix: change how database type is checked #950

This commit is contained in:
Attila Kerekes 2022-11-14 10:24:58 +01:00 committed by Attila Jozsef Kerekes
parent 198ffd7665
commit 5c2501c1a7
No known key found for this signature in database
GPG key ID: E1121565A016ADFD

View file

@ -123,7 +123,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function setupDatabase(): void
{
$db_type = env('DB_CONNECTION');
$db_type = config()->get('database.default');
if ($db_type == 'sqlite' && ! is_file(database_path('app.sqlite'))) {
touch(database_path('app.sqlite'));