简体   繁体   中英

laravel restfull api with Auth

我有一个带有laravel 5.1的Restfull应用程序,我在身份验证用户中使用Auth门面(会话)(例如Auth :: attempt,..),android和ios获得身份验证,但是angular无法为需要身份验证的api请求选择会话登录请求我的错误在哪里?

you might need to follow https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps

and use this https://github.com/sophatvathana/ngrolerr to store your token in cookie, sessionStroage or localStroage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM