пример миграции Laravel Enum
$table->enum('animal_type',['cat','dog','unknown'])->default('unknown');
Matio
$table->enum('animal_type',['cat','dog','unknown'])->default('unknown');
Add Laravel enmu migration :
------------------------------
$table->enum('question_type', ['objective', 'subjective', 'multiple_choice']);
Update Laravel enum migration :
---------------------------------
DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");
DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");