Q:

Laradock error on mysql_connect

I have a problem with mysqli and mysql. I'm using laradock on Mac, after the docker-compose up -d nginx mysql phpmyadmin and try to open my PHP project on web, I have this error:
Fatal error: Uncaught Error: Call to undefined function `mysqli_connect()` in /var/www/f......

I read the php specs with phpinfo() but Mysql seems to be set correctly.
Can anyone help me to solve it?

A:

I solve myself.
On .env file of Laradock I enabled MYSQL
PHP_FPM_INSTALL_MYSQLI=true

After in terminal I launched this command
docker-compose build php-fpm

