Skip to content
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

Issues with PHPStorm Version 2023.1.5 Build #PS-231.9414.10 build on February 14,2024 Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\DB" not found in /in/0g7nB:5 #333

Closed
1 task done
mydidefix opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mydidefix
Copy link

Short bug description

The Database: Larvel 9.5 Query Builder not working

Extended bug description

Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\DB" not found in /in/0g7nB:5
Stack trace:
#0 {main}
thrown in /in/0g7nB on line 5

Process exited with code 255.

Your project is not the problem

  • I tried using a fresh laravel install - I'm fairly certain it has nothing to do with my project.

How to reproduce?

Trying to retrieve data from the users table. you get an error.

Expected behavior

The query of the users table should work. It used to work as well.

Screenshots

No response

IDE & Version

PHPStorm 2023.1.5

PHP Version

PHP 8.0.13

OS and version

OS

Laravel Tinker plugin version

2.6.1

Interpreter type

Local

Laravel Version

versions : * v9.52.16

Tinker version

  • v2.8.2

Psysh version

  • v0.11.22

Additional Context

The problem did not exist before laravel update.
I was able to access Laravel DB Query without any problems.
Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\DB" not found in /in/0g7nB:5
Stack trace:
#0 {main}
thrown in /in/0g7nB on line 5

Process exited with code 255.

Many thanks for the great module.
mfg
Dieter

@mydidefix mydidefix added the bug Something isn't working label May 8, 2024
@Roboroads
Copy link
Owner

Roboroads commented May 8, 2024

thrown in /in/0g7nB

Looks like you're not running your code through the tinker plugin. Are you using the tinker action to run your code?
Check the FAQ

@Roboroads Roboroads closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants