public function __construct(array $attributes = []) { foreach ($this->fillable as $field) { if (!isset($attributes[$field])) { $attributes[$field] = ''; } } parent::__construct($attributes); }