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

Inability to initiate multiple PDO connections with the same db driver #23

Open
eubyte opened this issue Oct 23, 2023 · 0 comments
Open

Comments

@eubyte
Copy link

eubyte commented Oct 23, 2023

Database.php

Line 14 ("driver" => getenv('DB_CONNECTION')) is equating db connection with the driver itself, which is very misleading and prevents the ability to configure multiple connections (with custom names) from using the same driver.

Consider having 'connection1' with 'sqlite' driver and 'coonection2' with the same 'sqlite' driver -- it is currently impossible.

This works correctly in Laravel

@mychidarko mychidarko transferred this issue from leafsphp/leaf Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant