github mongodb/laravel-mongodb 4.0.0-rc1

latest releases: 5.1.0, 5.0.2, 5.0.1...
pre-release14 months ago

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 and UUID 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 accept Carbon\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 for countDocuments #18 by @GromNaN.
  • Accept operators prefixed by $ in Query\Builder::orWhere #20 by @GromNaN.
  • Remove Query\Builder::whereAll($column, $values). Use Query\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 _ in like 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. Call Model::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.

Don't miss a new laravel-mongodb release

NewReleases is sending notifications on new releases.