3 Total Posts
What is the difference between classes vs enums in PHP 8.1?
One of the common questions that I have been asked is what is the difference between classes and enums. Class(es) and enum(s) share many similarities but differ in some aspects. (...)
How to use the enumerations(Enums) of PHP 8.1 in Laravel?
The release of PHP 8.1 brings native enumerations to PHP. There is no more requirement for custom solutions in your Laravel projects since the Laravel v8.69 release has you back. (...)
What is Enumerations(Enums) in PHP 8.1? Enums in PHP v8.1 Explained in detail with examples.
PHP 8.1 added many new features, and Enumerations (Enum) is our favourite new feature. Enumerations (or enums for short) allow us to define a new structure similar to a class however (...)