laravel-mongodb: Class 'Jenssegers\Mongodb\Eloquent\Model' not found

  • Laravel Version: 7.16.1
  • PHP Version: 7.4
  • Database Driver & Version: “jenssegers/mongodb”: “4.0.0-alpha.1”

I have a queue application that I call from the console. When I want to insert collection I am getting bellow error. What would be the reason? I think bug.

Class 'Jenssegers\Mongodb\Eloquent\Model' not found {"exception":"[object] (Error(code: 0): Class 'Jenssegers\\Mongodb\\Eloquent\\Model' not found

When I use normal on browser. Its okay.

I made “composer dump-autoload” but not changed anything.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments