I have several DB configured on my Laravel app. Some are sqlsrv which works correctly. The default DB is a MYSQL DB. Also I have two more mysql db configured. When I try to query any of this two DB I get an error
When I do
$bookings = DB::connection('crm')
->table('act_bookings')
->where('deleted','=',0)
->get();
I get the error SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wscrm.act_bookings' wscrm is the name of the default DB.
LAravel not even try to connect to DB just throw this error. LAravel Version 6.2