-
|
Hi, We are using Laravel 12 and spatie/laravel-multitenancy 4.0 on PHP 8.2 We have to use a MySQL database server with enforced SSL (require_secure_transport enabled) but this doesn't work with the multi-tenancy connections. We have set the database SSL connection option which work in other frameworks e.g. in "config/database.php" add, 'options' = array( It appears to initiate the first connection as SSL/TLS and it runs "select * from I also added the same SSL options to "app/Models/Tenant.php" but it didn't help Any ideas on how we can resolve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Just to note we solved this by adding the same SSL options to app/Tenant/CustomSwitchTenantDatabaseTask.php |
Beta Was this translation helpful? Give feedback.
Just to note we solved this by adding the same SSL options to app/Tenant/CustomSwitchTenantDatabaseTask.php
and adding SESSION_CONNECTION=landlord to our .env file