How to write custom login function in Laravel

前提是你 提交于 2020-05-30 03:33:25

问题


I am building an app which has two types of users, sellers and buyers. Both sellers and buyers have different pages and forms for their registration. I have built the logic for registration of both users and that is working fine.

How can I write the logic for their login. I am confused between those guard and providers. How should I proceed. It would be nice if you share some tutorial or provide the steps to do this. Thanks


回答1:


What you are asking requires a lot of documenting the answer and investment of time (which I don't have at this moment). I recommend going though the Laravel Custom Guards.

Also, to give you a head start, check out this video Configuring Multi Auth Middleware on YouTube. I was able to build multi-auth after going through this video.



来源:https://stackoverflow.com/questions/58797261/how-to-write-custom-login-function-in-laravel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!