Using DB, you can use multiple databases using connection('mysql')
But what if you use multiple databases when using ORM?
When you create a Model, you can specify the connection.
protected $connection = 'connection-name';
That’s it.
Reference https://www.36nu.com/question/34
When you create a Model, you can specify the connection.
That’s it.
Reference https://www.36nu.com/question/34