laravel-mongodb
laravel-mongodb copied to clipboard
A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
add incrementEach add decrementEach
hi, I use this lib for the job queue. Right now, it could add the jobs to the queue successfully. But, when i executed php artisan queue:work mongodb, i got...
- Laravel-mongodb Version: "jenssegers/mongodb": "3.8" - PHP Version: ^7.3 - Database Driver & Version: MongoDB 6.0.8 ### Description: ``` db.data.find({"$and":[{"category_id":{"$in":[1,2,3,4,5,7,8,9,10,11,12,14,16,17,18,19,18775,23,24,25,26]}},{"$and":[{"price":{"$gte":1}},{"price":{"$lte":10000}},{"word_count":{"$gte":1}},{"word_count":{"$lte":10000}}]}]},{"sort":{"id":1},"skip":400,"limit":100,"typeMap":{"root":"array","document":"array"}}) ``` when I'm executing above query getting result in approx...
In a project I'm working on we use laravel passport for our authentication. Up until now we've been using the [designmynight/laravel-mongodb-passport](https://github.com/designmynight/laravel-mongodb-passport) package to update the passport models to work with...
- Laravel-mongodb Version: 3.9.5 - PHP Version: 8.1.9 - Database Driver & Version: 1.14.0 ### Description: Perviously I created a PR with improvement for retriable write operations. Link: [PR](https://github.com/jenssegers/laravel-mongodb/pull/2543) According...
I want to change the name of my database key example to dexample at the time of getting result through model
when i use toggle function in many to many relationship it attaches id as property has a value empty array and it doesn't behave as expected ``` public function toggleMember(Board...
Hello. I have a problem with withTrashed in MorphTo relation. (Embed model) withTrashed not disable the global scope, and I cannot get the deleted records. I have a workaround, tell...
![image](https://user-images.githubusercontent.com/18593080/29698503-783063d0-8988-11e7-8c19-845818e6363f.png) not work
I created a Model like this: ```php class Article extends Moloquent { // this class has an attribute like protected $fillable = ['like']; // and a static method like public...