All Notable changes to sebastiaanluca/laravel-boolean-dates
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Added support for Laravel 9
- Switched to using
\Illuminate\Support\Carbon
and\Carbon\CarbonImmutable
instead of\Carbon\Carbon
- Cleaned up code internally
- Added
BooleanDateAttribute
- Dropped support for PHP 7.x
- Dropped support for Laravel 7 and 8
- Removed requirements for
nesbot/carbon
- Removed
HasBooleanDates
trait
- Added support for Laravel 8
- Added support for Laravel 7
- Dropped support for Laravel 5
- Dropped support for Laravel 6
- Dropped support for PHP 7.2
- Added support for Laravel 6.0
- Replaced custom array subset with package
- Correctly tag Laravel version requirement
- Automatically detect a model's boolean date fields
- Add support for Laravel 5.8 (requires PHP 7.2 or higher)
- Renamed
BooleanDates
trait toHasBooleanDates
- Dropped support for Laravel 5.7 and lower
- Allow using
nesbot/carbon
^2.0 and up
- Run tests against Laravel 5.7
- Updated readme (yes, again 🤓)
- Updated readme
- Added example to readme intro
- Changed Composer description
- Require nesbot/carbon v1.22.1 to fix "Cannot access property xxxx::$lastErrors" (see briannesbitt/Carbon#852)
- Removed
$booleanDates
trait variable to resolve conflict with the model it's used in - Always return a valid array when retrieving all boolean dates
- Fixed issue where converting a model to an array didn't include the correct boolean field values
- Remove
self
return type hint (conflicted when returningnull
during an Artisan command)
- Allow using mutators and other features for boolean dates
- Allow multiple traits with the same methods (e.g.
getAttribute
)
- Fixed service provider auto-discovery
- Added BooleanDates model trait