Laravel Passport Multi-Auth

Laravel passport is a great package to authenticate your user to your web or mobile app. It uses the OAuth2 package by phpleague underneath. It should solve most of the API developers problem on the authentication side.

While Laravel Passport is useful to most developers, it is still a puzzle on how to authenticate multiple (user) models within it since underneath(by default), it looks on the users table only.

A recent update on the package allows you to specify a custom provider so you can hack a bit on the framework to look on which table in the database.

Check it out in my Github account — https://github.com/jsdecena/laravel-passport-mutiauth

--

--

Senior Fullstack Engineer, React Native developer and HL7 Health Informatics professional

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeff Simons Decena

Senior Fullstack Engineer, React Native developer and HL7 Health Informatics professional