Jose Jimenez

San Diego Developer

Category: Database

Using PHP 8.1 Enums in Laravel Models

The release of PHP 8.1 brings proper built-in support for Enums, proper cast support was also added in a pull request for Laravel 8. In this tutorial we will go over how to add Enums in Laravel Models.