Having issues with Laravel troubleshooting โ any tips for a beginner?
Hey everyone,
I'm super new to Laravel development and just trying to get my head around basic setup. I've been trying some things related to Laravel troubleshooting for a small project, but I keep hitting a wall with this error. I know it's probably something simple I'm missing.
Here's a snippet of what I'm seeing in my console:
[2023-10-27 14:30:01] local.ERROR: Call to undefined method App\Models\User::all() {"exception":"[object] (BadMethodCallException(code: 0): Call to undefined method App\\Models\\User::all() at /var/www/html/app/Http/Controllers/UserController.php:25)
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('all', Array)
#1 /var/www/html/app/Http/Controllers/UserController.php(25): Illuminate\\Database\\Eloquent\\Model->all()
...
Could any experts here point me in the right direction or suggest what I might be doing wrong? Any guidance on common pitfalls for a newbie would be amazing!
Thanks a ton in advance!
0 Answers
No answers yet.
Be the first to provide a helpful answer!