Open hadeswang2016 opened 1 year ago
Give me more info to help u.
新创建的laravel项目 项目中只用了 mongodb 然后按照 文档 这里的readme 步骤操作了一下 然后 写了个路由如下 Route::group(['middleware' => ['auth:sanctum']], function () { Route::get('systemUser/index', [SystemUserController::class, 'index']); }); 然后访问提示如上报错 php版本:PHP 7.4.30 laravel版本:Laravel Framework 8.83.27
知道了 可能是laravel版本问题 vendor\zach\sanctum-mongo\src\Guard.php 文件里 截图中红框里面的是数组 导致的 改成字符串就好了
ok,牛逼!