PHPackages                             lopatin96/laravel-social-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. lopatin96/laravel-social-auth

AbandonedLibrary[Authentication &amp; Authorization](/categories/authentication)

lopatin96/laravel-social-auth
=============================

Laravel social auth

1.0.25(1y ago)08.8kMITPHPPHP &gt;=8.0

Since Apr 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lopatin96/laravel-social-auth)[ Packagist](https://packagist.org/packages/lopatin96/laravel-social-auth)[ RSS](/packages/lopatin96-laravel-social-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (27)Used By (0)

Install
=======

[](#install)

### Views

[](#views)

Add these lines to `resources/views/auth/login.blade.php`:

```

```

and these to `resources/views/auth/register.blade.php`:

```

```

### FortifyServiceProvider

[](#fortifyserviceprovider)

Add these lines to `app/Providers/FortifyServiceProvider.php` as uses to manage redirections:

```
use Atin\LaravelSocialAuth\Http\Responses\LoginResponse;
use Laravel\Fortify\Contracts\LoginResponse as LoginResponseContract;
use Laravel\Fortify\Contracts\TwoFactorLoginResponse as TwoFactorLoginResponseContract;
```

then add singletons to **boot** method in `app/Providers/FortifyServiceProvider.php`:

```
public function boot(): void
{
    …
    $this->app->singleton(LoginResponseContract::class, LoginResponse::class);
    $this->app->singleton(TwoFactorLoginResponseContract::class, LoginResponse::class);
}
```

### Trait

[](#trait)

Add **HasSocialAccount** trait to User model:

```
use Atin\LaravelSocialAuth\Traits\HasSocialAccount;

class User extends Authenticatable
{
    use HasSocialAccount, …
```

### Config

[](#config)

Public config:

```
php artisan vendor:publish --tag="laravel-social-auth-config"
```

and comment/uncomment providers in `config/laravel-social-auth.php`:

```
return [
    'providers' => [
        'google' => [
            'title' => 'Google',
        ],

        'facebook' => [
            'title' => 'Facebook'
        ],

//        'instagram' => [
//            'title' => 'Instagram'
//        ],
    ],
];
```

### Configuration

[](#configuration)

Add these keys to `config/services.php` to manage google and facebook authentications:

```
'google' => [
    'api_key' => env('GOOGLE_API_KEY'),
    'client_id' => env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => env('GOOGLE_REDIRECT'),
],

'facebook' => [
    'client_id' => env('FACEBOOK_CLIENT_ID'),
    'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
    'redirect' => env('FACEBOOK_REDIRECT'),
],
```

### Delete old files

[](#delete-old-files)

Delete `resources/views/profile/delete-user-form-blade.php` and `resources/views/profile/logout-other-browser-sessions-form.blade.php` files

### Update the view

[](#update-the-view)

Update `resources/views/profile/show.php` to use new views

```

            {{ __('Profile') }}

            @if(Laravel\Fortify\Features::canUpdateProfileInformation())
                @livewire('profile.update-profile-information-form')

            @endif

            @if(Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::updatePasswords()) && ! auth()->user()->socialAccount)

                    @livewire('profile.update-password-form')

            @endif

            @if(Laravel\Fortify\Features::canManageTwoFactorAuthentication() && ! auth()->user()->socialAccount)

                    @livewire('profile.two-factor-authentication-form')

            @endif

                @livewire('logout-other-browser-sessions-form')

            @if(Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())

                    @livewire('delete-user-form')

            @endif

```

Publishing
==========

[](#publishing)

### Migrations

[](#migrations)

```
php artisan vendor:publish --tag="laravel-social-auth-migrations"
```

### Localization

[](#localization)

```
php artisan vendor:publish --tag="laravel-social-auth-lang"
```

### Views

[](#views-1)

```
php artisan vendor:publish --tag="laravel-social-auth-views"
```

### Config

[](#config-1)

```
php artisan vendor:publish --tag="laravel-social-auth-config"
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~8 days

Total

26

Last Release

542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ed7ade2d44e2f66eedf7dec7136ca591145f77d8192bdd789e04797c575d0f3?d=identicon)[Vladyslav Lopatin](/maintainers/Vladyslav%20Lopatin)

---

Top Contributors

[![lopatin96](https://avatars.githubusercontent.com/u/18104593?v=4)](https://github.com/lopatin96 "lopatin96 (24 commits)")[![vladyslav-lopatin-wskz](https://avatars.githubusercontent.com/u/214472383?v=4)](https://github.com/vladyslav-lopatin-wskz "vladyslav-lopatin-wskz (7 commits)")

### Embed Badge

![Health badge](/badges/lopatin96-laravel-social-auth/health.svg)

```
[![Health](https://phpackages.com/badges/lopatin96-laravel-social-auth/health.svg)](https://phpackages.com/packages/lopatin96-laravel-social-auth)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[devdojo/auth

The auth package to make authentication in your laravel applications easy to use.

61979.4k2](/packages/devdojo-auth)[genealabs/laravel-socialiter

Automatically manage user persistence and resolution for any Laravel Socialite provider.

133403.3k](/packages/genealabs-laravel-socialiter)[chrisreedio/socialment

Provides Socialite functionality for Filament.

10884.8k1](/packages/chrisreedio-socialment)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
