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
[NEW] Laravel MCP Server: Practical SaaS Example
9 lessons
49 min
Next.js Basics for Laravel Developers
11 lessons
58 min
Laravel 13 Starter Kit Teams and Customizations
10 lessons
33 min