Answers for "laravel get or set default value in model"

SQL
1

created_at default value laravel

$table->timestamp('created_at')->useCurrent();
Posted by: Guest on October-09-2020
0

set default value for column in laravel model

protected $attributes = [ 
	'your_field_name' => 'default value' 
];
Posted by: Guest on July-23-2021

Code answers related to "laravel get or set default value in model"

Code answers related to "SQL"

Browse Popular Code Answers by Language