jbowman99
2 years ago

update from 5.2 to 5.4 using multiple database connections have broken down since the update

Posted 2 years ago by jbowman99

Good Morning,

updated from 5.2 to 5.4 on an app. I was authenticating users against one database outside of this application,

in 5.2, everything was working fine, by adding in the User model this line

protected $connection = 'mysql2';

since the update this relationship has broken down, anywhere i am trying to query against the authenticated user, is now throwing an error. saying that table doesn't exist.

Auth::user()->anyrelationship

is failing. How can i resolve this?

Please sign in or create an account to participate in this conversation.