PHPackages                             islem-kms/l5-mauth-pass - 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. islem-kms/l5-mauth-pass

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

islem-kms/l5-mauth-pass
=======================

A

v2.0.0(5y ago)01.2kMITPHPPHP ^7.2CI failing

Since Feb 9Pushed 5y agoCompare

[ Source](https://github.com/islem-kms/l5-mauth-pass)[ Packagist](https://packagist.org/packages/islem-kms/l5-mauth-pass)[ RSS](/packages/islem-kms-l5-mauth-pass/feed)WikiDiscussions master Synced 3w ago

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

Laravel Passport Multi-Auth
===========================

[](#laravel-passport-multi-auth)

Add multi-authentication support to [Laravel Passport](https://laravel.com/docs/5.5/passport)

Compatibility
-------------

[](#compatibility)

Laravel Passport^2.0^3.0Installing and configuring
--------------------------

[](#installing-and-configuring)

- Install using composer:

```
composer require islem-kms/l5-mauth-pass
```

- If you are using a Laravel version **less than 5.5** you **need to add** the provider on `config/app.php`:

```
    'providers' => [
        ...
        IslemKms\PassportMultiauth\Providers\MultiauthServiceProvider::class,
    ],
```

- Migrate database to create `oauth_access_token_providers` table:

```
php artisan migrate
```

- Add new provider in `config/auth.php` using a model that extends of `Authenticatable` class and use `HasApiTokens` trait.

Ex.:

- Configure your model:

```
