protected function fillableFromArray(array $attributes) { if (count($this->getFillable()) > 0 && !static::$unguarded) { return array_intersect_key($attributes, array_flip($this->getFillable())); } return $attributes; }