PHPackages                             askedio/laravel-multiauth - 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. askedio/laravel-multiauth

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

askedio/laravel-multiauth
=========================

Authenticate using multiple sources.

v1.2(9y ago)0312MITPHPPHP &gt;=5.5.9

Since May 30Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

[![screen shot](https://camo.githubusercontent.com/2a3e0c5fbda2b16590279d9a3fd30efb881b6aecf9b7b1177f79fb34058ef884/687474703a2f2f692e696d6775722e636f6d2f4d466b4a7373752e6a7067)](https://camo.githubusercontent.com/2a3e0c5fbda2b16590279d9a3fd30efb881b6aecf9b7b1177f79fb34058ef884/687474703a2f2f692e696d6775722e636f6d2f4d466b4a7373752e6a7067)

Laravel Multi Auth
==================

[](#laravel-multi-auth)

Authenticate your Laravel 5 applications with email/password, email link, socialite and custom drivers. [Demo](https://cruddy.io/apps/multiauth/login) &amp; [Example app](https://github.com/Askedio/laravel-multi-oauth).

This package extends the default auth system with a custom guard, views and routes.

Installation
============

[](#installation)

Install with composer.
----------------------

[](#install-with-composer)

```
composer require askedio/laravel-multiauth

```

Enable
------

[](#enable)

Edit `config/app.php`

Register the `provider` and `alias`

```
 Askedio\MultiAuth\MultiAuthServiceProvider::class,

```

```
'MultiAuth' => Askedio\MultiAuth\Facades\MultiAuth::class,

```

Publish &amp; migrate
---------------------

[](#publish--migrate)

Please note: The `users` table needs some [new fields](https://github.com/Askedio/laravel-multiauth/blob/master/database/migrations/2014_10_12_000000_add_users_table.php) &amp; a [table](https://github.com/Askedio/laravel-multiauth/blob/master/database/migrations/2016_05_24_000000_create_user_oauth_table.php) for the tokens.

```
php artisan vendor:publish
php artisan migrate

```

Laravel Auth
============

[](#laravel-auth)

Make the Laravel auth system.

```
php artisan make:auth

```

Configure Routes
----------------

[](#configure-routes)

Edit `app/Http/routes.php`

Add the following line.

```
MultiAuth::route();

```

Configure User Model
--------------------

[](#configure-user-model)

Edit `app\User.php`

Change fillable to read.

```
protected $fillable = [
      'name', 'email', 'password', 'avatar', 'nickname', 'confirmed',
];

```

Add the oauth relation.

```
public function oauth()
{
    return $this->hasMany(\Askedio\MultiAuth\Models\UserOauth::class);
}

```

Configure Auth Guards &amp; Providers
-------------------------------------

[](#configure-auth-guards--providers)

Edit `config/auth.php`

Add to the `guards` array

```
'multiAuth' => [
    'driver'   => 'session',
    'provider' => 'multiAuth',
],

```

Add to the `providers` array

```
'multiAuth' => [
    'driver' => 'multiAuth',
    'model'  => App\User::class,
],

```

Configure your template
-----------------------

[](#configure-your-template)

Edit `resources/views/auth/login.blade.php`

Replace content with the `multiauth::login` login form.

```
@extends('layouts.app')

@section('content')
  @include('multiauth::login')
@endsection

```

Configure Socialite
-------------------

[](#configure-socialite)

Edit `config/services.php`

Add all the services you want.

```
'facebook' => [
    'client_id'     => env('FACEBOOK_CLIENT_ID'),
    'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
    'redirect'      => env('APP_URL').'/auth/facebook/callback',
],

```

Edit `.env` and add all the settings.

```
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3632d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1173636?v=4)[William](/maintainers/gcphost)[@gcphost](https://github.com/gcphost)

---

Top Contributors

[![gcphost](https://avatars.githubusercontent.com/u/1173636?v=4)](https://github.com/gcphost "gcphost (19 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/askedio-laravel-multiauth/health.svg)

```
[![Health](https://phpackages.com/badges/askedio-laravel-multiauth/health.svg)](https://phpackages.com/packages/askedio-laravel-multiauth)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M42](/packages/santigarcor-laratrust)[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)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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