Vigyata.AI
Is this your channel?
GithubGithub00

12 Add support for casting arrays containing enums

This PR is the one that adds support for casting arrays containing enums, which is the most powerful feature I showed in this video. If you’re storing multiple roles/types in a JSON column, this makes your model access way cleaner.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Enables enum collections directly from JSON/array columns
  • +Lets you work with enum methods/properties instead of strings

Cons

  • -Only helpful if you’re already using PHP enums in your app

Featured in this video