A boilerplate for easily building a Laravel + MySQL web application execution environment
- Application
- Laravel - 10.31.0
- PHP - 8.1.25
- Database
- MySQL - 8.0.27
- Docker
- Docker Compose
- Git
cp -p ./src/.env.example ./src/.env
docker-compose up -d
docker exec -it laravel-webapp-boilerplate_app_1 composer install
docker exec -it laravel-webapp-boilerplate_app_1 php artisan key:generate
docker-compose -f ./docker-compose.xdebug.yml up -d
"configurations": [
{
"name": "XDebug on alpine-laravel9-docker",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/opt/html": "{YOUR_WORKSPACE_PATH}/laravel-webapp-boilerplate/src"
}
}
]