Login with Google/Facebook

Filament 4/5
Also available in Filament 3 version

This project illustrates the integration of Social Login functionality into Filament projects through Laravel Socialite implementation.

Uk6Q3rav7QYtr7Xlsj0zd1flOkcZkb-metaU2NyZWVuc2hvdCAyMDIzLTEwLTE3IGF0IDA3LjI4LjQyLnBuZw==-

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Login with Google/Facebook
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 169 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 169 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

In this example, you will find the following logic:

  • Install Socialite
  • Filament theme hooks to extend the login page and add two login buttons
  • Custom Controller to handle the Social Login redirect and callback
  • Two fields on the User model to store the Social Login ID

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:

The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.