All notable changes to this project will be documented in this file.
- Rename package to
mongodb/laravel-mongodb
- Change namespace to
MongoDB\Laravel
- 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.- Make
EmbedsRelations::embedsMany
andEmbedsRelations::embedsOne
public #2588 by @GromNaN.
- Add single word name mutators #2438 by @RosemaryOrchard & @mrneatly.
- Check if queue service is disabled #2357 by @robjbrain.
- Fix getRelationQuery breaking changes #2263 by @divine.
- Apply fixes produced by php-cs-fixer #2250 by @divine.
- Add doesntExist to passthru #2194 by @simonschaufi.
- Add Model query whereDate support #2251 by @yexk.
- Add transaction free deleteAndRelease() method #2229 by @sodoardi.
- Add setDatabase to Jenssegers\Mongodb\Connection #2236 by @ThomasWestrelin.
- Check dates against DateTimeInterface instead of DateTime #2239 by @jeromegamez.
- Move from psr-0 to psr-4 #2247 by @divine.
- MongodbQueueServiceProvider does not use the DB Facade anymore #2149 by @curosmj.
- Add escape regex chars to DB Presence Verifier #1992 by @andrei-gafton-rtgt.
- Laravel 8 support by @divine.