$ echo APP_BUILD_TARGET=development-xdebug > .env $ docker compose build app
$ docker compose down $ docker compose up -d
$ docker compose exec app php -v PHP 8.1.7 (cli) (built: Jun 23 2022 07:57:40) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.7, Copyright (c) Zend Technologies with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
$ docker compose exec app php artisan -V Laravel Framework 9.19.0
Add CLI Interpreter
Name: docker-laravel Host: localhost Port: 9003 Debugger: XDebug Use path mappings: ✅
Name: docker-laravel Filter debug connection by IDE key: ✅ Server: docker-laravel IDE key: PHPSTORM
https://www.jetbrains.com/help/phpstorm/2022.1/browser-debugging-extensions.html?utm_source=product&utm_medium=link&utm_campaign=PS&utm_content=2022.1
There was an error while loading. Please reload this page.