duanpo1498 2017-11-21 06:23
浏览 36
已采纳

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

Now, I am using Laravel Passport(4.0) in my project

But it's not working well in production environment.

I was thinking to stop using Laravel Passport.

Is there any way easier than using Laravel Passport?

  • 写回答

1条回答 默认 最新

  • duanhai4046 2017-11-21 06:25
    关注

    I always prefer to use token based security to protect my APIs. Use JWT(Json Web Tokens). Learn more about it - https://jwt.io/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?