PHPackages                             hypnodev/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. hypnodev/laravel-mongodb-passport

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

hypnodev/laravel-mongodb-passport
=================================

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

3.0.0(4y ago)7181MITPHPPHP &gt;=7.1

Since Jan 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hypnodev/laravel-mongodb-passport)[ Packagist](https://packagist.org/packages/hypnodev/laravel-mongodb-passport)[ Docs](https://github.com/designmynight/laravel-mongodb-passport)[ RSS](/packages/hypnodev-laravel-mongodb-passport/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#laravel-mongodb-passport)

[![Latest Stable Version](https://camo.githubusercontent.com/2c2663a2e164181d9fce6360cdebe4e3fd3b1a8a5e72b1fadfdcb7c3ae6cd527/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6879706e6f6465762f6c61726176656c2d6d6f6e676f64622d70617373706f72742e737667)](https://packagist.org/packages/hypnodev/laravel-mongodb-passport) [![Total Downloads](https://camo.githubusercontent.com/d881e4b12803a7d6921d7db80a64b18881e84a2b9abf5e909f9347c63011493d/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6879706e6f6465762f6c61726176656c2d6d6f6e676f64622d70617373706f72742e737667)](https://packagist.org/packages/hypnodev/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)
- [Compatibility](#compatibility)

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

[](#installation)

Installation using composer:

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

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

```
