Support the ongoing development of Laravel.io →
Configuration Database Testing
Last updated 2 years ago.
0

Can't you use DB::connection('mysql')->select('qry') ?

0
Solution

Wuhu! thx for the hint. Now i use DB::setDefaultConnection('mysql'); and it works like charm!

Guess i was led astray by DB::reconnect('mysql') which did not work and where i could not find the desired connection configuration (connections array).

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Mipme mipme Joined 12 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.