تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Native Enums were added to PHP 8.1 and give us a place to store a collection of constants that don't change often. In this Larabit, we take a look at how to leverage Enums in a Laravel project, including Enum values, methods and validation.

Enum valuesEnum methodsEnum validation

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟