vendredi 20 septembre 2019

How to use another connection Laravel?

I have tried to use another Mysql connection in Laravel:

DB::connection('mysql2')->select(...);

But I need to use model like:

Equipment::all();

How to use another connection for model?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire