public function isActiveGuard(Request $request, $guard)
    {
        $name = Auth::guard($guard)->getName();

        return ($this->sessionHas($request, $name) && $this->sessionGet($request,
                $name) === $this->getAuthIdentifier($guard));
    }