LiliomLab / passport by mkwsra
forked from laravel/passport

Fork of Laravel Passport provides OAuth2 server support to Laravel, with added support for custom database connection.
13
4
2
Package Data
Maintainer Username: mkwsra
Maintainer Contact: hussam3bd@gmail.com (Hussam Abd)
Package Create Date: 2017-08-10
Package Last Update: 2017-08-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-03-27 03:10:36
Package Statistics
Total Downloads: 13
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Introduction

Laravel Passport is an OAuth2 server and API authentication package that is simple and enjoyable to use.

Installation

composer require liliom/passport 3.0.x-dev

Custom Database Connection

By default, Passport will use the default connection name, but now you can use custom database connection for Passport by adding your connection name in config/auth.php (guards.api.connection)

....

'guards' => [
    ...

    'api' => [
        'driver' => 'passport',
        'provider' => 'users',
        'connection' => env('PASSPORT_CONNECTION'),
    ],
],

...

Official Documentation

Documentation for Passport can be found on the Laravel website.

License

Laravel Passport is open-sourced software licensed under the MIT license.