I am using laravel 8 and would like to query a model from my production database.
I tried the following:
DB::connection('mysql_prod')->Company::where('symbol', $symbol)
->first();
However, I get the following error:
Undefined property: Illuminate\Database\MySqlConnection::$Company
I would like to get a laravel model - in this case Company - back.
Any suggestions how to implement this?