In my https://dev.to/snakepy/how-to-debug-laravel-apps-with-laravel-apps-with-xdebuger-in-vs-code-8cp I showed how you can set up XDebug for a simple dev environment, which used php artisan serve. Once you understand the set up, it will probably soon be your favorite Laravel dev environment as well.
In my example we are exposing php artisan serve on port 8000 and nginx on port 10000.
docker ps # to get the name of the app container docker exec -it bash php aritsan config:clear php artisan cache:clear php artisan route:clear php artisan migrate