leafMVC icon indicating copy to clipboard operation
leafMVC copied to clipboard

Inability to initiate multiple PDO connections with the same db driver

Open eubyte opened this issue 1 year ago • 0 comments

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

eubyte avatar Oct 23 '23 20:10 eubyte