laravel enum column

55

$table->enum('difficulty', ['easy', 'hard']);
$table->enum('priority', ['normal', 'medium', 'high'])->default('normal');
return [
    'phone_types' => [
        'CELL' => "Cellular",
        'HOME' => "Home",
        'WORK' => "Work",
    ]
];
config('enums.phone_types')

Comments

Submit
0 Comments