How to use this extension with docker?
naka-kai opened this issue · 1 comments
naka-kai commented
I use docker, not SAIL.
I have the following configuration, but it does not complete when {{route('')}}
.
{
"LaravelExtraIntellisense.basePath": "./src",
"LaravelExtraIntellisense.basePathForCode": "/workspace",
"LaravelExtraIntellisense.phpCommand": "docker-compose exec app php -r \"{code}\""
}
WORKDIR /workspace
I also get the following error when I hit the following command
docker exec -w /var/www/html -u laravel app-SkillVista php -r \"{code}\"
PHP Parse error: syntax error, unexpected end of file in Command line code on line 1
Parse error: syntax error, unexpected end of file in Command line code on line 1
Sorry for my bad English.
We look forward to your response!
naka-kai commented
It worked by restarting vscode!