simplesquid / nova-enum-field

An enum field and filters for Laravel Nova.
MIT License
52 stars 26 forks source link

Allow editing enums without casts #16

Closed rdarcy1 closed 4 years ago

rdarcy1 commented 4 years ago

We use 'enums' that are string values rather than ints (not really enums, but same idea). The app doesn't have casts set up because the strings are human-readable anyway, and I think with just a small tweak this package can work fine without casts.

One of the difficulties is we use enums on pivot tables to specify the nature or state of a relationship, and I think we'd have to create a pivot model for each of these in order to get the casts to work.

mdpoulter commented 4 years ago

Thanks for the PR, @rdarcy1 🥇 Looks great to me.