Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

set default value for column in laravel model

protected $attributes = [ 
	'your_field_name' => 'default value' 
]; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #default #column #laravel #model
ADD COMMENT
Topic
Name
1+5 =