Roboroads / laravel-tinker

Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Apache License 2.0
204 stars 15 forks source link

Error starting Tinker Query[Bug]: #323

Closed reinhardherrmann closed 3 months ago

reinhardherrmann commented 5 months ago

Short bug description

When starting query, the following issue occurs

Extended bug description

Fatal error: Uncaught Error: Class "App\Models\User" not found in /in/ESCj2:2 Stack trace:

0 {main}

thrown in /in/ESCj2 on line 2
Process exited with code 255.

Your project is not the problem

How to reproduce?

\App\Models\User::all()->each();

Expected behavior

show the user data

Screenshots

No response

IDE & Version

PHP Storm 2024.1

PHP Version

8.3

OS and version

Windows 11

Laravel Tinker plugin version

2.7

Interpreter type

Local

Laravel Version

11

Tinker version

2.7

Psysh version

2.5.5

Additional Context

nothing

Roboroads commented 5 months ago

Please check the the FAQ and see if that solves your problem. Sounds like an interpreter thing.