Laravel casting for UnitEnum
Closed this issue · 0 comments
henzeb commented
Laravel supports casting for BackedEnum out of the box, but does not support UnitEnums.
idea is to add casting for UnitEnums by using CastsAttributes interface.
This is currently being blocked by laravel/framework#42648. Laravel just checks if the enum exists, not if it is a BackedEnum.