- Added Laravel 11.x Compatibility
- Added optional operator to whereMeta scope
- Fixed a bug that was caused by a null value or a null cast. PR #104
- Added
createdWithMetas
,updatedWithMetas
,savedWithMetas
events.
- Added Laravel 10.x Compatibility.
- Added events for metas.
- Added
isMetaDirty
method.
- Improved
getMetaArray
method by removing linear search fromgetMetaArray
- Added
setAttribute
method. - Added
hasMeta
method. - Added
hasDefaultMetaValue
method. - Added ability to disable fluent meta access by setting
$disableFluentMeta
totrue
.
- Removed laravel 7 and bellow support.
- Removed
__get
method. - Removed
__set
method. - Removed
__isset
method. - Removed legacy getter.
- Removed
whereMeta
method in favor ofscopeWhereMeta
. - Renamed
getMetaDefaultValue
method togetDefaultMetaValue
. - You can now set meta names starting with
meta
. - Changed
saveMeta
method's visibility to public. - Changed
getMetaData
method's visibility to public. - Fluent setter will now check for any cast or mutator.
- Passing an array to
getMeta()
will now return a Collection with all the requested metas, even if they don't exist. non-existent metas value would be based on second parameter ornull
if nothing is provided.
- Fixed
getMeta
method's second parameter. - Fixed duplicate queries executed when retrieving the models stored as meta.
- Fixed fluent getter treating relations as meta when the result is null.