corcel / corcel

Use WordPress backend with Laravel or any PHP application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Database connection, What should I set connection in Corcel ?

B3DTechnologies opened this issue · comments

Hi,
I am working with 2 subdomains with their own WordPress install. I am able to work with one database as mentioned in Corcel docs. Now I need to add another one.
How can I add another connection and add it to the corcel "connection"?

Should I take the default Laravel approach of managing multiple DB connections, and specify the connection at the model level?
I will keep the findings posted.

Thanks for such an awesome package.