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

        return ($this->sessionHas($request, $name) && $this->sessionGet($request,
                $name) === $this->getAuthIdentifier($guard));
    }
public function isActiveGuard(Request $request, $guard)
    {
        $name = Auth::guard($guard)->getName();

        return ($this->sessionHas($request, $name) && $this->sessionGet($request,
                $name) === $this->getAuthIdentifier($guard));
    }
public function isActiveGuard ( Request $ request , $ guard ) { $ name = Auth :: guard ( $ guard ) -> getName ( ) ; return ( $ this -> sessionHas ( $ request , $ name ) && $ this -> sessionGet ( $ request , $ name ) === $ this -> getAuthIdentifier ( $ guard ) ) ; }
Check if a particular guard is active.

@param Request $request
@param string  $guard
@return bool
Check if a particular guard is active .