made with Laravel

Laravel Enum

Enumeration Implementation for Laravel

Visit Site


Enumeration Implementation for Laravel

"Enums aren't natively supported in PHP but an equivalent is fairly easy to achieve using constants on a class. Furthermore, I've created a Laravel package which allows you access helper functions such as listing keys and values, attaching descriptions to values, and validating requests which are expecting enum values."


Ben Sampson

Social Media Links

Laravel Eloquent Scope as Select Reuse Eloquent query scopes as select statements
icon-eye-dark Created with Sketch. 227
Laravel Middlewarize Use middleware to decorate method calls
icon-eye-dark Created with Sketch. 415
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
iSeed Inverse Seed Generator
icon-eye-dark Created with Sketch. 1.376
Laravel Mobile Verification Phone Number Verification
icon-eye-dark Created with Sketch. 695