Skip to content

thulisoft/laravel-mongodb-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 8 MongoDB Passport

A service provider to add support for Laravel 8 Passport and MongoDB.

Table of contents

Installation

Installation using composer:

composer require thulisoft/laravel-mongodb-passport

You need to have your App\User class extend MongoPassport\Mongodb\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 MongoPassport\Mongodb\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
}

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

MongoPassport\Mongodb\MongodbPassportServiceProvider::class,

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages