teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 144 forks source link

Add support to multiple connections #118

Closed julianobailao closed 7 years ago

julianobailao commented 7 years ago

Currently, the TNT Search command looks for the default database configuration. However, there may be more than one connection in the project.

With this small change, the command starts to look for the connection configuration first in the model, and it starts to support multiple connections.