Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

enum in migration laravel

// For identifying user
$table->enum('is_admin',['1','0'])->default('1');

// For User roles
$table->enum('user_role',['admin','manager','quest'])->default('quest');
 
PREVIOUS NEXT
Tagged: #enum #migration #laravel
ADD COMMENT
Topic
Name
3+4 =