In my local environment I am working with multiple tenants and Redis (Auth required). To serve the project I am using Valet.
For this case
To dynamically change database name you should use:
DB::disconnect(); Config::set('database.mysql.database', 'tenant_foo'); DB::reconnect();