Laravel Passport Multiple Authentication using Guards
问题 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 vendor user. Both have their different models Driver and Vendor. How can we use different guards to authenticate both types of users using Laravel Passport? 回答1: Here is an example of auth.php and api.php to start with config/auth.php <?php return [ /* |------------------------------------------------------------------------