You'll have to define env variables for both connections and add both connections to your config/database.php configuration file. You might consider defining a prefix for each group of environment variable by connection type. Something like MYSQL_ mysql connection and SQLSVR_ for your sql server connection environment variables. Then you can use the `connection() method to select which connection you want to use for your query.
DB::connection('foo')->select(...);
Here is a Docs Reference for multiple database connections.
You'll also want to include the sqlsrv connection parameters in your code sample in the connections array of your database.php config file.