amir9480/vscode-laravel-extra-intellisense

Extension doesnt work when not in default root folder.

RidoneMuh opened this issue · 2 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
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.

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.