Add support for custom "Run Tinker with using custom command"
See original GitHub issueThis request is related to this bug report.
Background
Recently, my team split our app into a few Docker containers. Prior to this, I was using PHPStorm Laravel Tinker extensively with an interpreter installed globally on my machine.
Now that we’ve moved to Docker, I’d like to also change my PHP interpreter to use our Docker’s binary instead of my local machine’s (for consistency). I’ve been able to set my interpreter to Docker, but when I run Laravel Tinker I don’t see anything in the output panel.
An example
Interpreter Settings
Requested Feature
Per Roboroad’s comment, I would find it very helpful to be able to set Laravel Tinker to run with a custom command (e.g. A setting to tell Laravel Tinker to run its commands via ./vendor/bin/sail php artisan tinker
)
The ultimate goal of this feature request is to get an output in the output panel when using a PHP interpreter inside a Docker container.
Possible Alternatives
I will update this section if I come up with any alternative ideas.
- Nothing to see here yet
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
Oh, fun fact, i have this problem myself now - my laravel project is in a subfolder from the larger project. Might be something to do with that.
Note that the plugin never actually runs
php artisan tinker
, ratherphp -r <init code> <your code>
. This is using the interpreter PHPstorm uses.Please check your settings of your PHP Interpreter and path mapping again, All the people I have spoken to have the same problem, but fixed it with using correct settings