vscode-laravel-artisan
vscode-laravel-artisan copied to clipboard
Add sail compatibility
I don't seem to be able to run these commands from sail. You may know that sail uses the syntax: sail artisan
but there doesn't seem to be an option to enable that option or integrate with sail otherwise.
@adammpkins you could edit settings for:
Sets a custom location to the php executable as sail
However that only wont work because it uses it as a string so it will fail, maybe if there is a eval "sail" it would work.
Inside: src/Common.ts There is:
command = `"${phpLocation}" artisan ${command}`
Not sure why is phpLocation under double quotes? @TheColorRed
I know it's been a long time and it may have already been resolved. I will record this for the benefit of those who visit here.
I was able to execute the command with the following configuration
"artisan.docker.command": "docker-compose exec -T -u sail 'laravel.test'",
I just set "artisan.docker.command": "./vendor/bin/sail"
Stale issue message