public function canBeAuthenticated(Authenticatable $user, $guards)
    {
        $userGuard = AuthConfigHelper::getUserGuard($user);

        return in_array($userGuard, $guards);
    }
public function canBeAuthenticated(Authenticatable $user, $guards)
    {
        $userGuard = AuthConfigHelper::getUserGuard($user);

        return in_array($userGuard, $guards);
    }
public function canBeAuthenticated ( Authenticatable $ user , $ guards ) { $ userGuard = AuthConfigHelper :: getUserGuard ( $ user ) ; return in_array ( $ userGuard , $ guards ) ; }
Check if user acting has the required guards and scopes on request.

@param Authenticatable $user
@param  array $guards
@return bool
@throws \SMartins\PassportMultiauth\Exceptions\MissingConfigException
Check if user acting has the required guards and scopes on request .