PHPackages                             votong/laravel-mongodb-passport - 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. [Database &amp; ORM](/categories/database)
4. /
5. votong/laravel-mongodb-passport

ActiveLibrary[Database &amp; ORM](/categories/database)

votong/laravel-mongodb-passport
===============================

A package to allow laravel/passport use with jenssegers/laravel-mongodb

v1.1.9(7y ago)13.7kMITPHP

Since Jan 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/votong/laravel-mongodb-passport)[ Packagist](https://packagist.org/packages/votong/laravel-mongodb-passport)[ Docs](https://github.com/votong/laravel-mongodb-passport)[ RSS](/packages/votong-laravel-mongodb-passport/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (16)Used By (0)

Laravel MongoDB Passport
========================

[](#laravel-mongodb-passport)

[![Latest Stable Version](https://camo.githubusercontent.com/50d6aa6ff09807a47e1862530d671d59410b0afc49b9b96592cb7cae0d51de69/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f766f746f6e672f6c61726176656c2d6d6f6e676f64622d70617373706f72742e737667)](https://packagist.org/packages/votong/laravel-mongodb-passport) [![Total Downloads](https://camo.githubusercontent.com/5e17d71ceb4d37b6af78d68ad658caf39af7bd9d3b1750bc796f1a19aa066ce7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f766f746f6e672f6c61726176656c2d6d6f6e676f64622d70617373706f72742e737667)](https://packagist.org/packages/votong/laravel-mongodb-passport)

A service provider to add support for [Laravel Passport](https://github.com/laravel/passport) and [MongoDB](https://github.com/jenssegers/laravel-mongodb).

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)

Installation
------------

[](#installation)

Installation using composer:

```
composer require votong/laravel-mongodb-passport
```

You need to have your `App\User` class extend `VoTong\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.

```
