Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

set default value for column in laravel model

protected $attributes = [ 
	'your_field_name' => 'default value' 
]; 
 
PREVIOUS NEXT
Tagged: #set #default #column #laravel #model
ADD COMMENT
Topic
Name
4+9 =