Skip to content

Releases: mongodb/laravel-mongodb

5.0.2

17 Sep 12:29
b51aeff
Compare
Choose a tag to compare

What's Changed

Fixed

Other Changes

Full Changelog: 5.0.1...5.0.2

5.0.1

13 Sep 13:41
3ac7955
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: 5.0.0...5.0.1

5.0.0

12 Sep 09:54
3c1aab7
Compare
Choose a tag to compare

The PHP team is happy to announce that version 5.0.0 of the MongoDB integration for Laravel is now available. Feedbacks are welcome in this discussion.

Breaking changes for better compatibility with Laravel and Eloquent

  • id is always alias to _id in MongoDB. You can remove the protected $primaryKey = '_id' in model classes. Replace all $model->_id with $model->id.
  • DateTimeInterface objects (including Carbon) are converted to MongoDB UTCDateTime by the query builder in queries, inserted and updated data. In results, MongoDB UTCDateTime objects are automatically converted to Carbon date with the default timezone. Some Eloquent cast my no longer be required.
  • Results of the Query Builder are returned as stdClass instead of array. Replace code like $item['name'] with $item->name.
  • $collection is replaced by $table to customize the name of an Eloquent Model.
  • The providers Auth\PasswordResetServiceProvider, MongoDBQueueServiceProvider and Queue\Failed\MongoFailedJobProvider are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classes
  • MongoDB\Laravel\Connection is replaced by MongoDB\Connection, and query are logged using MongoDB Monitoring Events.

What's Changed

New Features

Other Changes

New Contributors

Full Changelog: 4.8.0...5.0.0

5.0.0-RC1

09 Sep 07:45
6507279
Compare
Choose a tag to compare
5.0.0-RC1 Pre-release
Pre-release

The PHP team is happy to announce that version 5.0.0-RC1 of the MongoDB integration for Laravel is now available. This is a release candidate for which we'd like to receive your feedback in the discussion.

Breaking changes for better compatibility with Laravel and Eloquent

  • id is always alias to _id in MongoDB. You can remove the protected $primaryKey = '_id' in model classes. Replace all $model->_id with $model->id.
  • DateTimeInterface objects (including Carbon) are converted to MongoDB UTCDateTime by the query builder in queries, inserted and updated data. In results, MongoDB UTCDateTime objects are automatically converted to Carbon date with the default timezone. Some Eloquent cast my no longer be required.
  • Results of the Query Builder are returned as stdClass instead of array. Replace code like $item['name'] with $item->name.
  • $collection is replaced by $table to customize the name of an Eloquent Model.
  • The providers Auth\PasswordResetServiceProvider, MongoDBQueueServiceProvider and Queue\Failed\MongoFailedJobProvider are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classes
  • MongoDB\Laravel\Connection is replaced by MongoDB\Connection, and query are logged using MongoDB Monitoring Events.

What's Changed

New Features

Other Changes

New Contributors

Full Changelog: 4.8.0...5.0.0-rc1

4.8.0

27 Aug 21:15
6a8a2e3
Compare
Choose a tag to compare

What's Changed

New Features

Fixed

Other Changes

New Contributors

Full Changelog: 4.7.1...4.8.0

4.7.2

27 Aug 16:40
efab63b
Compare
Choose a tag to compare

What's Changed

Fixed

Other Changes

Full Changelog: 4.7.1...4.7.2

4.7.1

25 Jul 14:23
fb7bbf6
Compare
Choose a tag to compare

What's Changed

Fixed

Full Changelog: 4.7.0...4.7.1

4.7.0

19 Jul 13:43
5c31094
Compare
Choose a tag to compare

This release improves the compatibility with introspection features provided by Laravel (commands db:show and db:table) and the package barryvdh/laravel-ide-helper.

What's Changed

New Features

Fixed

New Contributors

Full Changelog: 4.6.0...4.7.0

4.6.0

09 Jul 13:20
179c6a6
Compare
Choose a tag to compare

What's Changed

New Features

Other Changes

New Contributors

Full Changelog: 4.5.0...4.6.0

4.5.0

20 Jun 13:56
d82ab46
Compare
Choose a tag to compare

What's Changed

New Features

Other Changes

Full Changelog: 4.4.1...4.5.0