-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: #365
Comments
@seeronline Clearly I am not going download and execute any code without explanation of what it does or assurance that it is not malicious ;-) |
Hi, same issue here. Similar simple artisan code. When I press run it just says that it can't find the file. Please fix this. Thank you! |
You both are not executing through the tinker plugin, but running the PHP script as a simple PHP script. The tinker plugin adds the autoloader and laravel inits etc. to your code before executing, which a normal run does not. Try the shortkey Ctrl+Shift+T or press the green tinker button in the gutter at line 1 of your tinker console. |
I added a header for this issue in the FAQ in #250 |
👍🏼😬 sorry
… On 9 Sep 2024, at 01:16, Roboroads ***@***.***> wrote:
You both are not executing through the tinker plugin, but running the PHP script as a PHP script. The tinker plugin adds the autoloader and laravel inits etc. to your code before executing, which a normal run does not.
Try the shortkey Ctrl+Shift+T or press the green tinker button in the gutter at line 1 of your tinker console.
—
Reply to this email directly, view it on GitHub <#365 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC6D62VABCPG7BLZBLBT4Y3ZVTSFVAVCNFSM6AAAAABNDQBBDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHA4DCNRUGU>.
You are receiving this because you authored the thread.
|
Short bug description
Tinker cannot find my classes so fails
Extended bug description
results in
php is installed via brew
PHP 8.1.29 (cli)
@ /opt/homebrew/bin/php
Obviously this is something to do with my set up as others using Tinker with no probs.
php artisan tinker
works fineAny suggestions?
Ta
Richard
Your project is not the problem
How to reproduce?
Expected behavior
Screenshots
No response
IDE & Version
PhpStorm 2024.1.5
PHP Version
8.1
OS and version
mac 13.6.9 (22G830)
Laravel Tinker plugin version
2.7.3
Interpreter type
Local
Laravel Version
9.52.16
Tinker version
2.7.3
Psysh version
v0.12.4
Additional Context
No response
The text was updated successfully, but these errors were encountered: