Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error env calling at database config setup #148

Open
dmekhov opened this issue Jul 8, 2024 · 0 comments
Open

Error env calling at database config setup #148

dmekhov opened this issue Jul 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dmekhov
Copy link

dmekhov commented Jul 8, 2024

Base scaffold have env function call in app/config/database.php

'driver' => env('DB_CONNECTION', 'sqlite'),
https://github.com/spiral/app/blob/master/app/config/database.php#L30

but it seems like env doesn't working properly at that moment

I've got an error here

php app.php db:list
[Cycle\Database\Exception\ConfigException]
Undefined driver ``
in vendor/cycle/database/src/Config/DatabaseConfig.php:107

if I set

'databases' => [
        'default' => ['driver' => 'sqlite'],
],

everything is ok

@roxblnfk roxblnfk added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants