Answers for "laravel enum update"

PHP
0

enum table in laravel

$table->enum('priority', ['normal', 'medium', 'high'])->default('normal');
Posted by: Guest on October-12-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

Browse Popular Code Answers by Language