Isswp101\Persimmon\Traits\Fillable::fill PHP Method

fill() public method

Fill the instance with an array of attributes.
public fill ( array $attributes )
$attributes array
    public function fill(array $attributes)
    {
        foreach ($attributes as $key => $value) {
            if (property_exists($this, $key)) {
                $this->{$key} = $value;
            }
        }
        return $this;
    }
Fillable