laravel-mongodb
laravel-mongodb copied to clipboard
A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
- Laravel-mongodb Version: 3.9.0 - PHP Version: 8.1.2 - Database Driver & Version: linux mongodb 5.0.8 ### Description: Hi there, Whenever i try to use saving and deleting methods i...
I have used both of those: `Product::limit(1)->update(['xxx' => 'yyy']); ` and `Product::update(['xxx' => 'yyy'], ['multi' => 0, 'multiple' => 0]); ` and none of them worked
### Versions: - PHP Version: 8.1.9 - "jenssegers/mongodb": "^3.9", - "laravel/framework": "^9.19", - "barryvdh/laravel-ide-helper": "^2.12", ### Description: Cant create model helpers for models that use mongo db with barryvdh/laravel-ide-helper I...
Im trying to validate the mongoDB id (coming in from API request) but I cant find a function from this library to do the ID validation. I tried using this...
### Is your feature request related to a problem? I have a problem where I'm attempting to add a bunch of dates to user-supplied field-names. As an example, think of...
- Laravel-mongodb Version: 3.8.5 - PHP Version: 8.0.15 - Database Driver & Version: unix 3.4.24 ### Description: I have a hybrid setup with MySQL and MongoDB. Eager Loading latest item...
I believe that the comment in the link below should be at least referenced in the docs. [https://github.com/jenssegers/laravel-mongodb/discussions/2242#discussioncomment-678732](https://github.com/jenssegers/laravel-mongodb/discussions/2242) It basically creates a new PersonalAccessToken class that can be used to...
- Laravel-mongodb Version: dev-master - PHP Version: #.#.# - Database Driver & Version: ### Description: ### Steps to reproduce 1. jenssegers/mongodb[v3.8.0, ..., 3.8.x-dev] require illuminate/events ^8.0 -> found illuminate/events[v8.0.0, ...,...
In laravel 9 with MongoDB(jenssegers/mongodb 3.9) I added withCount in request : $subscription = Subscription ::getById($subscriptionId) ->withCount('userSubscriptions') ->firstOrFail(); and got error : [2022-08-16 14:02:18] local.ERROR: Illegal offset type {"userId":"62fb9ff9f74eb576f803a7b2","exception":"[object] (TypeError(code:...
### Is your feature request related to a problem? Yes, i can not upload bulk messages via upsert ### Describe the solution you'd like I would like to use ELO...