public function confirm()
    {
        $this->trigger(self::BEFORE_CONFIRM);
        $result = (bool) $this->updateAttributes(['confirmed_at' => time()]);
        $this->trigger(self::AFTER_CONFIRM);
        return $result;
    }
public function confirm()
    {
        $this->trigger(self::BEFORE_CONFIRM);
        $result = (bool) $this->updateAttributes(['confirmed_at' => time()]);
        $this->trigger(self::AFTER_CONFIRM);
        return $result;
    }
public function confirm ( ) { $ this -> trigger ( self :: BEFORE_CONFIRM ) ; $ result = ( bool ) $ this -> updateAttributes ( [ 'confirmed_at' => time ( ) ] ) ; $ this -> trigger ( self :: AFTER_CONFIRM ) ; return $ result ; }
Confirms the user by setting 'confirmed_at' field to current time.
Confirms the user by setting confirmed_at field to current time .