amir9480 / vscode-laravel-extra-intellisense

This extension adds extra autocompletion for laravel projects to VSCode.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.laravel-extra-intellisense
MIT License
3.44k stars 55 forks source link

Extension doesnt work when not in default root folder. #76

Closed RidoneMuh closed 1 year ago

RidoneMuh commented 2 years ago

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

amir9480 commented 2 years ago

@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.

scofield-ua commented 1 year ago

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.