laravel-mongodb icon indicating copy to clipboard operation
laravel-mongodb copied to clipboard

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

Results 240 laravel-mongodb issues
Sort by recently updated
recently updated
newest added

### Context The ScoutEngine::delete() method requires an Illuminate\Database\Eloquent\Collection (alias EloquentCollection). However, the thrown TypeError message incorrectly states the expected type as Illuminate\Support\Collection, which misleads during debugging. ### Problem Current message...

Hello, Found issue, when I'm using custom cast on attribute and save data in `object` type this attribute every time appeared in `getDirty` list. This behaviour because of ignoring custom...

Currently, **mongodb/laravel-mongodb** automatically maps MongoDB’s _id field to Laravel’s id attribute on Eloquent models. This makes it difficult to use a custom id field alongside MongoDB’s native _id. **Example use...

- Laravel-mongodb Version: 5.x - PHP Version: 8.x - Database Driver & Version: 1.2/2.0 ### Description: Eager loading morphTo() relationships with withTrashed() does not include soft-deleted models. The MorphTo::getResultsByType() method...

- Laravel-mongodb Version: 5.5+ - PHP Version: doesn't matter - Database Driver & Version: doesn't matter ### Description: PR https://github.com/mongodb/laravel-mongodb/pull/3408 adds `trigger_error` into the file directly (not inside a method)....

- Laravel-mongodb Version: 5.5.0 - PHP Version: 8.4.4 - Database Driver & Version: mongodb/mongodb 2.1.1 ### Description: Using `DB::enableQueryLog` within a test that is using the `DatabaseMigrations` trait fails with...

- Laravel-mongodb Version: 5.5.0 - PHP Version: 8.2 - Database Driver & Version: 7.0.8 ### Description: The morph function in migrations throws an error. ### Steps to reproduce ``` public...

bug
tracked-in-jira

Hello everyone :) As described here #3306, when casting an array attribute as `array`, it will save as a JSON-encoded string. In this PR, I prevent casting an array to...

Fixed the serialization of embed relations. These relationships were not necessarily loaded, and could not use their attribute mutators. ### Checklist - [x] Add tests and ensure they pass

### Description This pull request refactors the test suite to eliminate redundant model instantiations. Several test cases repeatedly constructed identical `User`, `Item`, and `Book` model objects inline, leading to code...