
Filament, stormy pints, and sushi
Laravel News Podcast
00:00
Backing Enumerations in PHP
You can't use an Enum as an array key. This is because we have the luxury of the collections abstraction over the top of array functionality. It's essentially identifying this is a backed Enum, which is one that can return a string or an integer value. So instead of having to, you know, key by dollar Enum arrow status, sorry, arrow value or arrow name, you can just pass it the collection. That's really nice. I didn't even know this existed this backed Enum deal here.
Transcript
Play full episode