Debugging Laravel Sail with XDebug
Configure Laravel application
- Update
.envfile to add these values
1 2 | |
- Update
docker-compose.ymlfile to addPHP_IDE_CONFIG: 'serverName=Docker'environment variable underlaravel.test
- To ensure that our docker setup is configured correctly you can temporarily add a new route to your web.php files as the following
1 2 3 | |
Go to http://{your-domain}/phpinfo
You should see similar values as of this:
Great! Everything is set up