Kolom Laravel Enum
$table->enum('difficulty', ['easy', 'hard']);
Bug Killer
$table->enum('difficulty', ['easy', 'hard']);
$table->enum('priority', ['normal', 'medium', 'high'])->default('normal');
composer require bensampo/laravel-enum
php artisan make:enum UserType
return [
'phone_types' => [
'CELL' => "Cellular",
'HOME' => "Home",
'WORK' => "Work",
]
];
config('enums.phone_types')