So i work with Laravel 4.2, what i want is in one of my models use an external database, this is my model code :
I think for a lot of use cases it can be convenient to declare the connection at runtime like this:
$McibModel = new McibModel(); $McibModel->setConnection('second_db_connection');