Illuminate\Database\Eloquent\Model::fillableFromArray PHP Method

fillableFromArray() protected method

Get the fillable attributes of a given array.
protected fillableFromArray ( array $attributes ) : array
$attributes array
return array
    protected function fillableFromArray(array $attributes)
    {
        if (count($this->getFillable()) > 0 && !static::$unguarded) {
            return array_intersect_key($attributes, array_flip($this->getFillable()));
        }
        return $attributes;
    }
Model