Laravel Multiple Database Connection

Laravel Multiple Database Connection – this is way to setup and work with multiple database connection in Laravel

The soul always knows what to do to heal itself. The challenge is to silence the mind

The soul always knows what to do to heal itself. The challenge is to silence the mind

Define connections in config file app/config/database.php

Use the second DB in Eloquent Model

Use the second DB Connection in Controller

Query Builder