Access another DB in the service provider

Viewed 483

I am new to service providers in Laravel so I am a little bit confused.

I am developing a application that uses some kind of service provider. The service provider is basically making queries against another DB. The settings for that other DB are in the env file and also in the config\database I am using another mysql connection (mysql2).

My question is how to send the mysql2 to the service provider so the class that is registering to use it?

Thank you for all your help

1 Answers
Related