This project illustrates the integration of Social Login functionality into Filament projects through Laravel Socialite implementation.
In this example, you will find the following logic:
First, we need to install Socialite:
composer require laravel/socialite
Then, we can start adding our implementation. We will begin with the Filament theme hooks to extend the login page and add two login buttons:
app/Providers/Filament/AdminPanelProvider.php
return $panel // ... ->renderHook( 'panels::auth.login.form.after', fn() => view('auth.socialLogin') );
Then, we need to create the view: