Open pcodetm opened 4 years ago
You would build all that into your app's code at the tenant layer. Essentially:
This would likely include things like:
Hello thanks for the valuable help. Configure the application as indicated
Once all the configuration is done I receive a message in the console when I execute the following command:
$ php artisan config: cache
I faced a similar problem recently. Instead of using a Service Provider, use a Middleware. For some reason, the boot method on the Sevice Provider runs before a tenant has been identified. So use a middleware but make sure it is not global middleware on Kernel because it will run on every request. Assign that middleware to only one route that is going to trigger that email sending.
Hello, how can I configure the sending of mail for each of the tenants? That each tenant manages its own mail configuration file