Use Lavarel for database

I just imported my database into the aiven database. How can I use this in my laravel application.

Hi there! We have a project in public archive that might be interesting for your use case: GitHub - Aiven-Labs/aiven-laravel: Extend Laravel PHP framework to make working with Aiven databases simpler We’d be happy to take it out of archive…

Greetings checking in after 2 years lol so it seems the Database PaaS im using requies I connect via ssl I get this error SQLSTATE[HY000] [2002] Cannot connect to MySQL using SSL (SQL: select count(*) as aggregate from `users` where `email` = htimanti86@gmail.com) probably an IP issue because I run the same container on docker with MYSQL_ATTR_SSL_CA=mysql_preview_ca_file.crt but idk what the issue might be. I was able to run php artisan migrate with the same configuration but the running application simply cant connect to the DB. I cannot disable sslmode becuase this is a production enviroment

Hey @jeff_kubabik_427 I am not 100% sure given your deployment, however i noticed you mentioned you were working in docker, I know previously folks had issues where the config was updated and correct but docker was keeping a cache.

The below worked for other users to clear that cache.

Originally I found the answer in stack overflow for clearing the cache.

if this is a production docker this comes with a health warning though, you might want to do a bit more investigation before trying any of the commands in the stack overflow article however, as I have not personally used it before.