public function save(array $attributes = [])
    {
        $this->fireModelEvent(new Events\Saving($this));

        $saved = $this->exists ? $this->update($attributes) : $this->create($attributes);

        if ($saved) {
            $this->fireModelEvent(new Events\Saved($this));
        }

        return $saved;
    }
public function save(array $attributes = [])
    {
        $this->fireModelEvent(new Events\Saving($this));

        $saved = $this->exists ? $this->update($attributes) : $this->create($attributes);

        if ($saved) {
            $this->fireModelEvent(new Events\Saved($this));
        }

        return $saved;
    }
public function save ( array $ attributes = [ ] ) { $ this -> fireModelEvent ( new Events \ Saving ( $ this ) ) ; $ saved = $ this -> exists ? $ this -> update ( $ attributes ) : $ this -> create ( $ attributes ) ; if ( $ saved ) { $ this -> fireModelEvent ( new Events \ Saved ( $ this ) ) ; } return $ saved ; }
Saves the changes to LDAP and returns the results.

@param array $attributes The attributes to update or create for the current entry.

@return bool
Saves the changes to LDAP and returns the results .