去掉中间件,然后在控制器里面写。 $auth = \Illuminate\Support\Facades\Auth::guard('sanctum'); 现在你就可以用这个 `$auth->check()` 和 `$auth->user()` 来获取用户信息了。
阅读量:1
点赞量:0