Results of the tutorial from Connor Leech extended by using Laradock.
Follow the Laradock installation guide.
Then run the following steps to configure mysql:
cd laradock
docker-compose up -d ngnix mysql phpmyadmin
docker-compose exec mysql bash
mysql -u root -p
When prompted set the password to root
.
Change the DB_HOST
in Laravel's .env file to mysql
:
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravue
DB_USERNAME=root
DB_PASSWORD=root
Clear the Laravel config cache:
docker-compose exec workspace bash
php artisan config:cache