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)
https://github.com/Smolevich/demo-mongo-application/blob/6d4b9605501d1d1803f33ee602258c0c12fb1b17/composer.lock#L464 laravel 7.16.1 https://github.com/Smolevich/demo-mongo-application/blob/6d4b9605501d1d1803f33ee602258c0c12fb1b17/composer.lock#L395 - 4.0.0-alpha.1"