Laravel 9/10: 7 Improvements Around ENUMs

preview_player
Показать описание
Enum classes are a pretty new PHP feature, but Laravel contributors added a lot of improvements to recognize them as "first-party citizens".

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Using enums more and more now in Laravel projects. It’s been particularly helpful to be able to add functions to the enum. We needed to initialise an enum for locale with varying different string values, and be able to render out as varying different values. Worked really well.

richardfila
Автор

Excellent content! I don't even work with Laravel, but I can't stop watching your videos! You're making me a big fan of it. I'm using Laravel for some side projects now, and I wish I had learned it earlier. It's possibly the most coherent framework I've ever used, and thanks to you, it has become even easier to understand :)

matheus_delazeri
Автор

ENUMs are a godsend, because they contribute to the DRY best practice of not writing down the same string on multiple places. Just use a ENUM with value.

Flankymanga
Автор

Your narrations are fantastic, I am excited to see a new video every day at 8 AM. 🥳
I am currently using ENUMs similar to this but with a different logic. It seems simpler and plainer to me than these methods. It is a method I developed myself... 😇
Again, it was an informative video... Thank you very much. 🤩

erhanurgun
Автор

I do not have understand a word about enum of this entiere video.
I will learn what is it and come back.
Some ressources about enum for a beginner ?

It would be greatly appreciated.
Wish you a good coding day fellows !

AzDavai
Автор

Hey, just curious, will you attend the Laracon event on Feb?

cardboarddignity