vscode-laravel-extra-intellisense icon indicating copy to clipboard operation
vscode-laravel-extra-intellisense copied to clipboard

Extension doesnt work when not in default root folder.

Open RidoneMuh opened this issue 2 years ago • 1 comments

Please help anyone,

I cant use this extension when my Laravel Project isn't in root folder, in my case in code folder. How can I use the Base path for my case ?

This is my folder structure... image

RidoneMuh avatar Sep 08 '22 15:09 RidoneMuh

@RidoneMuh I think you should use the base path configuration like this:

"LaravelExtraIntellisense.basePath": "/yourprojectpath/yourproject/code",

There is also a sample configuration for docker (Laradock in my case) please check it out.

amir9480 avatar Sep 16 '22 10:09 amir9480

I've used a different command for LaravelExtraIntellisense.basePath:

docker exec $(docker ps --filter name=-app --format '{{.ID}}') php -r "{code}"

Command inside $() will filter by name -app and output ID of the container.

So first I boot up the application with docker compose up where I have container with PHP and name which ends with the -app string.

scofield-ua avatar Jan 10 '23 13:01 scofield-ua