Releases: mongodb/laravel-mongodb
4.1.2
The PHP team is happy to announce that version 4.1.2 of the MongoDB integration for Laravel is now available.
Release Highlights
- Fix support for subqueries using the query builder by @GromNaN in #2717
- PHPORM-145 Fix
Query\Builder::dump
anddd
methods to dump MongoDB query by @GromNaN in #2727 and #2730 - PHPORM-140: Fix documentation for inverse embed relationships by @alcaeus in #2734
Documentation
Documentation for this library may be found one the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.2
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
Full Changelog: 4.1.1...4.1.2
4.1.1
The PHP team is happy to announce that version 4.1.1 of the MongoDB integration for Laravel is now available.
Release Highlights
- Fix casting issues by @stubbo in #2705
- Reset
Model::$unset
when a model is saved or refreshed by @richardfila in #2709 - DOCSP-35148: Convert docs to Snooty RST by @ccho-mongodb in #2704
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.1
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
New Contributors
- @ccho-mongodb made their first contribution in #2704
- @stubbo made their first contribution in #2705
- @richardfila made their first contribution in #2709
Full Changelog: 4.1.0...4.1.1
4.0.3
The PHP team is happy to announce that version 4.0.3 of the MongoDB integration for Laravel is now available.
Release Highlights
- Reset
Model::$unset
when a model is saved or refreshed by @richardfila in #2709
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.3
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
New Contributors
- @richardfila made their first contribution in #2709
Full Changelog: 4.0.2...v4.0.3
4.1.0
The PHP team is happy to announce that version 4.1.0 of the MongoDB integration for Laravel is now available.
Release Highlights
- The Laravel version requirement is increased to 10.30.0 to remove some backward compatibility code (#2665) with the help from @Treggats
- Support for MorphToMany relationships is added (#2670) and polished so that it works with both MongoDB and hybrid models (#2688 and #2690) by @hans-thomas
- Casting of various types is improved (#2658, #2653) by @hans-thomas
- A new method
Connection::ping()
is added to check the connection to the server (#2677) by @hans-thomas - Pagination for
groupBy
queries is supported (#2672) by @GromNaN - Fields can be renamed in migrations (#2682) by @hans-thomas
A complete list of resolved issues in this release may be found in the changelog.
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.1.0
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
New Contributors
- @bisht2050 made their first contribution in #2646
- @shoito made their first contribution in #2647
- @andersonls made their first contribution in #2692
Full Changelog: 4.0.2...4.1.0
4.0.2
The PHP team is happy to announce that version 4.0.2 of the MongoDB integration for Laravel is now available.
Release Highlights
- Fix compatibility with Laravel 10.30 by @Treggats in #2661
- PHPORM-92: Test on PHP 8.3 by @alcaeus in #2637
- Add tests on Adding New Fields and fetch relationships withThrashed by @hans-thomas in #2644
- PHPORM-101 Allow empty insert batch for consistency with Eloquent SQL by @GromNaN in #2645
- Test with lowest dependencies in CI by @GromNaN in #2663
New Contributors
- @hans-thomas made their first contribution in #2644
- @Treggats made their first contribution in #2661
Full Changelog: 4.0.0...4.0.2
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.2
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
4.0.0
The MongoDB PHP team is happy to announce that version 4.0.0 of the MongoDB integration for Laravel 10 is now available.
Release Highlights
- Rename package to
mongodb/laravel-mongodb
- Change namespace to
MongoDB\Laravel
- Add classes to cast
ObjectId
and UUID instances 5105553 by @alcaeus. - Add
Query\Builder::toMql()
to simplify comprehensive query tests ae3e0d5 by @GromNaN. - Fix
Query\Builder::whereNot
to use MongoDB$nor
operator e045fab by @GromNaN. - Fix
Query\Builder::whereBetween
to acceptCarbon\Period
object f729baa by @GromNaN. - Throw an exception for unsupported
Query\Builder
methods e1a83f4 by @GromNaN. - Throw an exception when
Query\Builder::orderBy()
is used with invalid direction edd0871 by @GromNaN. - Throw an exception when
Query\Builder::push()
is used incorrectly 19cf7a2 by @GromNaN. - Remove public property
Query\Builder::$paginating
e045fab by @GromNaN. - Remove call to deprecated
Collection::count
forcountDocuments
4514964 by @GromNaN. - Accept operators prefixed by
$
inQuery\Builder::orWhere
0fb83af by @GromNaN. - Remove
Query\Builder::whereAll($column, $values)
. UseQuery\Builder::where($column, 'all', $values)
instead. 1d74dc3 by @GromNaN. - Fix validation of unique values when the validated value is found as part of an existing value. d5f1bb9 by @GromNaN.
- Support
%
and_
inlike
expression ea89e86 by @GromNaN. - Change signature of
Query\Builder::__constructor
to match the parent class #2570 by @GromNaN. - Fix Query on
whereDate
,whereDay
,whereMonth
,whereYear
,whereTime
to use MongoDB operators #2376 by @Davpyu and @GromNaN. Model::unset()
does not persist the change. CallModel::save()
to persist the change #2578 by @GromNaN.- Support delete one document with
Query\Builder::limit(1)->delete()
#2591 by @GromNaN - Add trait
MongoDB\Laravel\Eloquent\MassPrunable
to replace the Eloquent trait on MongoDB models #2598 by @GromNaN
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:^4.0.0
Installation instructions for the mongodb extension may be found in the PHP.net documentation.
4.0.0-rc1
The MongoDB PHP team is happy to announce that version 4.0.0-rc1 of the MongoDB integration for Laravel is now available.
This is a release candidate for the upcoming 4.0.0 release. Please test it and report issues as soon as possible.
Release Highlights
- Rename package to
mongodb/laravel-mongodb
- Change namespace to
MongoDB\Laravel
- Laravel 10 compatibility by @alcaeus in #2506
- 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
ObjectId
andUUID
instances #1 by @alcaeus. - Add
Query\Builder::toMql()
to simplify comprehensive query tests #6 by @GromNaN. - Fix
Query\Builder::whereNot
to use MongoDB$not
operator #13 by @GromNaN. - Fix
Query\Builder::whereBetween
to acceptCarbon\Period
object #10 by @GromNaN. - Throw an exception for unsupported
Query\Builder
methods #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::count
forcountDocuments
#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_
inlike
expression #17 by @GromNaN. - Change signature of
Query\Builder::__constructor
to match the parent class #26 by @GromNaN. - Fix Query on
whereDate
,whereDay
,whereMonth
,whereYear
,whereTime
to use MongoDB operators#2570 by @Davpyu and @GromNaN. Model::unset()
does not persist the change. CallModel::save()
to persist the change#2578 by @GromNaN.- Changed queue field
failed_at
as ISODate #2607 by @BehroozBvk
Documentation
Documentation for this library may be found in the Readme.
Installation
This library may be installed or upgraded with:
composer require mongodb/laravel-mongodb:4.0.0-rc1
Installation instructions for the mongodb
extension may be found in the PHP.net documentation.
v4.0.0-ALPHA2
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
ObjectId
andUUID
instances #1 by @alcaeus. - Add
Query\Builder::toMql()
to simplify comprehensive query tests #6 by @GromNaN. - Fix
Query\Builder::whereNot
to use MongoDB$not
operator #13 by @GromNaN. - Fix
Query\Builder::whereBetween
to acceptCarbon\Period
object #10 by @GromNaN. - Throw an exception for unsupported
Query\Builder
methods #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::count
forcountDocuments
#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_
inlike
expression #17 by @GromNaN. - Change signature of
Query\Builder::__constructor
to match the parent class #26 by @GromNaN. - Fix Query on
whereDate
,whereDay
,whereMonth
,whereYear
,whereTime
to 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.