Skip to content

pedmindset/laravel-couchbase-passport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Couchbase Passport

Latest Stable Version

A service provider to add support for Laravel Passport and Couchbase.

Table of contents

Installation

Installation using composer:

composer require pedmindset/laravel-couchbase-passport

You need to have your App\User class extend Pedmindset\Couchbase\Auth\User.php instead of the default Illuminate\Foundation\Auth\User. This user class extends larvel-mongodb eloquent user as well as adding all the standard and required authentication and laravel passport traits.

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Pedmindset\Couchbase\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
}

Laravel version Compatibility

Laravel Passport Package
5.5.x 4.0.x, 5.0.x, 6.0.x, 7.0.x 1.1.x
5.6.x 4.0.x, 5.0.x, 6.0.x, 7.0.x 1.1.x

And add the service provider in config/app.php:

Pedmindset\Couchbase\CouchbasePassportServiceProvider::class,

For usage with Lumen, add the service provider in bootstrap/app.php.

$app->register(Pedmindset\Couchbase\CouchbasePassportServiceProvider::class);

The service provider will overide the default laravel passport models in order to use couchbase's implementation of eloquent. There is no need to register any additional classes or add any additional configuration other than those outlined in Laravel Passport and Couchbase Laravel Package.

About

A package to get Laravel Passport working with Couchbase

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%