src/Modules/Auth/User.php
public function logout($destroy = false)
    {
        if ($destroy === true) {
            $this->session->invalidate();
        } else {
            $this->session->remove(self::USER_ID);
            $this->session->remove(self::USER_NAME);
            $this->session->remove(self::USER_GROUPS);

            $this->session->migrate();
        }

        return !$this->isLogin();
    }
public function logout($destroy = false)
    {
        if ($destroy === true) {
            $this->session->invalidate();
        } else {
            $this->session->remove(self::USER_ID);
            $this->session->remove(self::USER_NAME);
            $this->session->remove(self::USER_GROUPS);

            $this->session->migrate();
        }

        return !$this->isLogin();
    }
@param boolean $destroy

@return boolean