API 接口登录认证会自动到 Web 的登录认证,怎么能将 API 的登录认证不走 Web 的守护

API 接口登录认证会自动到 web 的登录认证,怎么能将 API 的登录认证不走 web 的守护?
如果我将 config/auth.php 中的 Authentication Defaults 的配置改成:

'defaults' => [
        'guard' => 'api',
        'passwords' => 'users',
    ],

正阳修改后请求接口登录授权认证一切正常,如果将默认的 guard 修改为 web 就不行了,错误异常日志:

local.ERROR: Argument 2 passed to Illuminate\Auth\SessionGuard::__construct() must be an instance of Illuminate\Contracts\Auth\UserProvider, null given, called in E:\vagrant\develop\mcc\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php on line 125 
#0 E:\\vagrant\\develop\\mcc\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(125): Illuminate\\Auth\\SessionGuard->__construct('web', NULL, Object(Illuminate\\Session\\Store))
#1 E:\\vagrant\\develop\\mcc\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(94): Illuminate\\Auth\\AuthManager->createSessionDriver('web', Array)
#2 E:\\vagrant\\develop\\mcc\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(68): Illuminate\\Auth\\AuthManager->resolve('web')
#3 E:\\vagrant\\develop\\mcc\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(54): Illuminate\\Auth\\AuthManager->guard('web')

为什么会走 guard ('web') 捏?不是很清楚求指教

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。