Skip to main content
Back to packages
285 GitHub stars

DirectoryTree/Bartender

View on GitHub

Description

Bartender serves you a controller, routes, and a default implementation for handling authentication with Laravel Socialite providers.

Direct your user to the /auth/{driver}/redirect route to authenticate with the given driver:

<a href="{{ route('auth.driver.redirect', 'google') }}">
Login with Google
</a>
 
<a href="{{ route('auth.driver.redirect', 'microsoft') }}">
Login with Microsoft
</a>

Once the user successfully authenticates, they will be redirected to the /auth/{driver}/callback route, which will automatically create or update their application user account.

Recent Courses on Laravel Daily