Merge pull request #951 from keriati/fix/950-env-db
fix: change how database type is checked #950
This commit is contained in:
commit
d4f7ad842c
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue