php - wordpress gives database error but wp cli can connect

one text

so im running a fork of bedrock, im connecting with the bedrock instance via laravel/valet. but when loading the page i get a database error. when checking the database connection with wp-cli's wp db check it can connect with the databases. the weird thing is im not seeing any errors in mysql's general log. does anyone know where i can look to fix it?

im guessing it something to do with how php tries to connect to mariadb

im running mariadb

Source