Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Search Results for "enum"

We found 20 results for "enum".

Haven't found what you're looking for?

Our team is here to help. Ask us anything about Laravel development and we'll get back to you with personalized guidance.

Ask for Personal Help

We'll respond within 24 hours

Function available only for premium members.

Be as specific as possible so we can provide the best guidance.

Package 2030 stars

BenSampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel

Code Example ammannbe/RecipeManager

ammannbe/RecipeManager

Files in the example:

  • database/migrations/2019_12_08_091942_create_recipes_table.php
  • app/Models/Recipes/Recipe.php
  • app/Http/Requests/Recipes/Recipe/Store.php
Code Example spatie/spatie.be

spatie/spatie.be

Files in the example:

  • composer.json
  • app/Models/Enums/TechnologyType.php
  • app/Models/Technology.php
  • app/Nova/Technology.php
Video Free

Why I Don't Like ENUMs in Database

ENUM DB field looks like a very readable and clean solution, but it is not flexible enough. Let me explain, in this short video.

Code Example area17/twill

area17/twill

Files in the example:

  • composer.json
  • src/Models/Enums/UserRole.php
  • src/Models/User.php
  • src/Http/Controllers/Admin/UserController.php
Code Example caneara/tipsea

caneara/tipsea

Files in the example:

  • app/Enums/NotificationType.php
  • app/Models/Notification.php
  • app/Actions/Like/StoreAction.php
Code Example unopim/unopim

unopim/unopim

Files in the example:

  • packages/Webkul/DataGrid/src/Enums/ColumnTypeEnum.php
  • packages/Webkul/DataGrid/src/Column.php

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.