Answers for "enum value in laravel migration"

PHP
4

laravel enum column

$table->enum('difficulty', ['easy', 'hard']);
Posted by: Guest on April-29-2021
1

Laravel Migration - Update Enum Options

DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");
Posted by: Guest on April-28-2021

Code answers related to "enum value in laravel migration"

Browse Popular Code Answers by Language