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

Laravel 13 Starter Kit Teams and Customizations

10 lessons
33 min

Laravel 13 Eloquent: Expert Level

41 lessons
1 h 34 min

How to Build Laravel 13 API From Scratch

30 lessons
1 h 23 min

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.