简体   繁体   English

laravel5.4中保护api路由的最简单方法是什么

[英]What is the easiest way to protect api routing in laravel5.4

Now, I am using Laravel Passport(4.0) in my project 现在,我在项目中使用Laravel Passport(4.0)

But it's not working well in production environment. 但是它在生产环境中不能很好地工作。

I was thinking to stop using Laravel Passport. 我当时想停止使用Laravel Passport。

Is there any way easier than using Laravel Passport? 有没有比使用Laravel Passport容易的方法?

I always prefer to use token based security to protect my APIs. 我总是喜欢使用基于token的安全性来保护我的API。 Use JWT(Json Web Tokens). 使用JWT(Json Web令牌)。 Learn more about it - https://jwt.io/ 了解更多信息-https: //jwt.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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