public function confirm($code = '')
    {
        if (!$this->confirmationAttribute || !$this->validateConfirmationCode($code)) {
            return false;
        }
        $this->confirmation = static::$confirmTrue;
        return $this->save();
    }
public function confirm($code = '')
    {
        if (!$this->confirmationAttribute || !$this->validateConfirmationCode($code)) {
            return false;
        }
        $this->confirmation = static::$confirmTrue;
        return $this->save();
    }
public function confirm ( $ code = '' ) { if ( ! $ this -> confirmationAttribute || ! $ this -> validateConfirmationCode ( $ code ) ) { return false ; } $ this -> confirmation = static :: $ confirmTrue ; return $ this -> save ( ) ; }
Confirm the current content.
@param string $code
@return boolean
Confirm the current content .