This document describing how you can configure your IDE PhpStorm.
- Go to
Settings -> Plugins
and install next plugins:- .env files support
- .ignore
- Makefile support
- Laravel
- Php Inspections (EA Extended)
- Go to
Settings -> Languages & Frameworks -> Php -> Laravel
and checkEnable plugin for this project
. - Go to
Settings -> Languages & Frameworks -> Php -> Composer
and set path to composer.json, check other settings:
You need to set correct CLI interpreter for your PhpStorm.
In order to do it please open Settings -> Languages & Frameworks -> PHP
section and follow recommendations configuring remote PHP interpreters.
In order to configure PHP servers please open Settings -> Languages & Frameworks -> PHP -> Servers
.
You need to configure how your local files will be mapped inside docker container:
If you want to run tests directly from your IDE you need to do following configuration in Settings -> Languages & Frameworks -> PHP -> Test Frameworks
:
Next you need to add Run/Debug configuration for PHP Remote Debug. It need to be the same as image below:
In order to use Xdebug as debugging tool please follow Using Xdebug documentation.