如何在Laravel 5中验证RESTful API? [英] how to authenticate RESTful API in Laravel 5?

查看:196
本文介绍了如何在Laravel 5中验证RESTful API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Laravel 5中对RESTful API进行身份验证? 我正在使用Laravel 5构建RESTful API和我想将这些API用于移动应用程序.

How to authenticate RESTful API in Laravel 5? I am using Laravel 5 to build a RESTful API & I want to use those API for mobile application.

我还看到了 http://laravel.com/docs/5.0/authentication 但没有得到任何相关示例,请为我提供示例示例或用于验证Laravel 5中的RESTful API的适当链接.

I have also seen http://laravel.com/docs/5.0/authentication but not getting any related example so,please provide me sample example or appropriate link for authenticate RESTful API in Laravel 5.

推荐答案

我一直在寻找相同的答案,我发现此链接对于使用JWT .

I was looking for the same answer and I found this link very useful with detailed information and usage for L5 with the use of JWT .

JSON网络令牌

希望它也对您有帮助.

这篇关于如何在Laravel 5中验证RESTful API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆