Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how change default value for enum colun in laravel

$table->enum('status',['new', 'active', 'disabled'])->default('active');
Comment

PREVIOUS NEXT
Code Example
Php :: is_array php 
Php :: select session php 
Php :: set null on foreign key deletion in laravel 
Php :: cakephp 2 with customize link 
Php :: strtoupper php 
Php :: Detecting russian characters on a form in PHP 
Php :: laravel emial unique igration error 
Php :: check php version 
Php :: how to run a specific test in laravel 
Php :: object to array php 
Php :: php return json 
Php :: laravel gigapay create payout 
Php :: laravel store multiple files 
Php :: codeigniter set timezone 
Php :: how to add dummy records using factory in laravel 8 
Php :: codeigniter where_not_in 
Php :: Laravel 8 query builder, Inner Join Clause 
Php :: php check if number starts with 0 
Php :: codeigniter count rows 
Php :: laravel delete records of child relations 
Php :: vue mouseover 
Php :: convert post name to id 
Php :: bind in pdo 
Php :: php select page change 
Php :: post json php 
Php :: upppercase php 
Php :: php get all saturdays in a month 
Php :: set php path in ubuntu 
Php :: run python script from batch file with arguments 
Php :: laravel queue work on shared hosting 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =