且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用API​​调用在Laravel上对Auth :: check()用户进行身份验证

更新时间:2023-09-28 21:57:34

您是否要发送auth令牌,因为在编写API时,我们需要处理auth令牌而不是Auth :: check().您需要在api调用时发送带有用户ID的身份验证令牌,并确认详细信息可以继续.

Are you sending auth token because when we write the API we need to deal with auth token and not with Auth::check(). You need to send auth token with user id at the time of api call and verify that details to proceed.