I'm working on a Laravel project using Laradock. I do not have PHP installed locally. How can I get IntelliSense for PHP and Laravel to work in VSCode while using Laradock?
1 Answer
From your local machine:
Install the Dev Containers Extension
Using Dev Containers, attach to your Laravel Workspace Container. A new VSCode window will open.
From your workspace container:
Ensure that you have PHP intellisense and Laravel extensions installed within the container. You'll have to go to the extensions tab again and you will see "Install in Container <container name>".
Set your php executable path. On a Mac you need to go to Code > Settings > Settings, and select the remote container tab.
Then add
"php.validate.executablePath": "/usr/bin/php"



