v4.0.0-ALPHA2
Pre-release
Pre-release
This is a pre-version with Laravel 10.x support.
Please test on your project and report any issue.
Package is renamed mongodb/laravel-mongodb and namespace changed to MongoDB\Laravel.
What's Changed
- Rename package to
mongodb/laravel-mongodb - Change namespace to
MongoDB\Laravel - Laravel 10 compatibility by @alcaeus in #2506
- chore: improve docker tests by @divine in #2514
- Update README.md by @abbasudo in #2512
- Fix: remove incompatible return type by @saulens22 in #2517
- fix Enums not being cast when calling
Model::toArray()by @jeromegamez in #2522 - Add classes to cast
ObjectIdandUUIDinstances #1 by @alcaeus. - Add
Query\Builder::toMql()to simplify comprehensive query tests #6 by @GromNaN. - Fix
Query\Builder::whereNotto use MongoDB$notoperator #13 by @GromNaN. - Fix
Query\Builder::whereBetweento acceptCarbon\Periodobject #10 by @GromNaN. - Throw an exception for unsupported
Query\Buildermethods #9 by @GromNaN. - Throw an exception when
Query\Builder::orderBy()is used with invalid direction #7 by @GromNaN. - Throw an exception when
Query\Builder::push()is used incorrectly #5 by @GromNaN. - Remove public property
Query\Builder::$paginating#15 by @GromNaN. - Remove call to deprecated
Collection::countforcountDocuments#18 by @GromNaN. - Accept operators prefixed by
$inQuery\Builder::orWhere#20 by @GromNaN. - Remove
Query\Builder::whereAll($column, $values). UseQuery\Builder::where($column, 'all', $values)instead. #16 by @GromNaN. - Fix validation of unique values when the validated value is found as part of an existing value. #21 by @GromNaN.
- Support
%and_inlikeexpression #17 by @GromNaN. - Change signature of
Query\Builder::__constructorto match the parent class #26 by @GromNaN. - Fix Query on
whereDate,whereDay,whereMonth,whereYear,whereTimeto use MongoDB operators #2570 by @Davpyu and @GromNaN. Model::unset()does not persist the change. CallModel::save()to persist the change #2578 by @GromNaN.
New Contributors
- @abbasudo made their first contribution in #2512
- @saulens22 made their first contribution in #2517
- @GromNaN made their first contribution in #2567
Full Changelog: v3.9.5...v4.0.0-ALPHA2
Note: an old tag4.0.0-alpha.1 was created 3 years ago and should not be used.