- Added Laravel 13.x Compatibility
- Added
getAttributeRawandsetAttributeRawmethods
- Added Laravel 12.x Compatibility
- 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,savedWithMetasevents.
- Added Laravel 10.x Compatibility.
- Added events for metas.
- Added
isMetaDirtymethod.
- Improved
getMetaArraymethod by removing linear search fromgetMetaArray
- Added
setAttributemethod. - Added
hasMetamethod. - Added
hasDefaultMetaValuemethod. - Added ability to disable fluent meta access by setting
$disableFluentMetatotrue.
- Removed laravel 7 and bellow support.
- Removed
__getmethod. - Removed
__setmethod. - Removed
__issetmethod. - Removed legacy getter.
- Removed
whereMetamethod in favor ofscopeWhereMeta. - Renamed
getMetaDefaultValuemethod togetDefaultMetaValue. - You can now set meta names starting with
meta. - Changed
saveMetamethod's visibility to public. - Changed
getMetaDatamethod'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 ornullif nothing is provided.
- Fixed
getMetamethod'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.