fix: change how database type is checked #950
This commit is contained in:
parent
198ffd7665
commit
5c2501c1a7
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