laravel set default value in model code example
Example: laravel model column default value
class User extends Model {
protected $attributes = [
'is_author' => 0,
];
}
class User extends Model {
protected $attributes = [
'is_author' => 0,
];
}