chat icon indicating copy to clipboard operation
chat copied to clipboard

Make connection on models configurable

Open inmanturbo opened this issue 2 years ago • 0 comments

This allows developers to override default connection on package models by adding a key of database_connection in config/musonza_chat.php. I would like to use this in a project I am working on right now but I am unable to because I need to use a different database connection from the default. This change will not affect existing applications already using the default connection. No configuration changes are need for migrations, one can simply pass --database[=DATABASE] at the time of migration.

Please accept my pull request so that I may use this package. Thank you!

inmanturbo avatar Jun 09 '22 03:06 inmanturbo