We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
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?
Aucun commentaire:
Enregistrer un commentaire