Laravel Passport Multiple Authentication using Guards

前端 未结 4 527
说谎
说谎 2020-12-09 06:54

Can we use laravel passport with different guards to authenticate APIs for two different types of users. For example we have driver app for driver user and vendor app for ve

4条回答
  •  我在风中等你
    2020-12-09 07:08

    After spent time I have found that in Laravel 7 there is no custom code required except some configuration. For details please check this answer I have tested & implemented in my projects Multi Auth with Laravel 5.4 and Passport

提交回复
热议问题