Laravel 5.2 Auth::check()在store()操作中返回null
我正在为我的API项目使用JWT身份验证(Laravel5.2)。Laravel 5.2 Auth::check()在store()操作中返回null,laravel,laravel-5.2,jwt,Laravel,Laravel 5.2,Jwt,我正在为我的API项目使用JWT身份验证(Laravel5.2)。 Auth::check()正在返回false(对于Auth::user(),也返回null)仅在store()中返回AgentuserController中的操作。但如果我将操作名称更改为其他名称(trystore),那么它将返回true并更正登录用户的Auth::user() 有什么想法吗
Auth::check()
正在返回false
(对于Auth::user(),也返回null
)
仅在store()中返回AgentuserController中的操作。但如果我将操作名称更改为其他名称(trystore),那么它将返回true
并更正登录用户的Auth::user()
有什么想法吗