public function fillFromExistingOrNew(array $attributes = [])
    {
        $this->fill($attributes);

        $this->exists = ! empty($attributes[$this->getKeyName()]);

        return $this;
    }
public function fillFromExistingOrNew(array $attributes = [])
    {
        $this->fill($attributes);

        $this->exists = ! empty($attributes[$this->getKeyName()]);

        return $this;
    }
public function fillFromExistingOrNew ( array $ attributes = [ ] ) { $ this -> fill ( $ attributes ) ; $ this -> exists = ! empty ( $ attributes [ $ this -> getKeyName ( ) ] ) ; return $ this ; }
Create model instance from existing.

@param array $attributes

@return $this
Create model instance from existing .