PHPackages                             webdecero/webdecero-package-laravel-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. webdecero/webdecero-package-laravel-passport

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

webdecero/webdecero-package-laravel-passport
============================================

Enable use of laravel/passport with mongodb/laravel-mongodb

2.0.2(1y ago)015MITPHPPHP ^8.1

Since Oct 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/webdecero/webdecero-package-laravel-passport)[ Packagist](https://packagist.org/packages/webdecero/webdecero-package-laravel-passport)[ RSS](/packages/webdecero-webdecero-package-laravel-passport/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Patch Laravel Passport (Laravel + MongoDB + Passport)
=====================================================

[](#patch-laravel-passport-laravel--mongodb--passport)

Enable use of laravel/passport with mongodb/laravel-mongodb

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

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)

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

[](#installation)

Make sure you have the MongoDB PHP driver installed. You can find installation instructions at:

-
-

### Requeriments

[](#requeriments)

#### PHP extension

[](#php-extension)

- **php**: ^8.1

**WARNING**: The old mongo PHP driver is not supported.

### Laravel version Compatibility

[](#laravel-version-compatibility)

LaravelPackagePassport10.x1.x11.10.\*11.x2.x12.xInstallation using composer:

```
composer require webdecero/webdecero-package-laravel-passport

```

**Optional** Add the service provider to `config/app.php`:

```
Webdecero\Laravel\Passport\PassportServiceProvider::class
```

Configuration
-------------

[](#configuration)

In this new major release which supports the new mongodb PHP extension, we also moved the location of the Model class and replaced the MySQL model class with a trait.

### Env File

[](#env-file)

```
DB_CONNECTION=mongodb
DB_HOST=localhost
DB_AUTHENTICATION_DATABASE=**your database authentication, for global authentication use admin**
DB_DATABASE=**your database**
DB_USERNAME=**your username**
DB_PASSWORD=**your password**
DB_PORT=27017
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

551d ago

Major Versions

1.0.x-dev → 2.0.02024-10-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a036fe00c6b7d5e8e937081a08e7922bab2cd75fa3531f29c3ab878531b41a8?d=identicon)[uriel2707](/maintainers/uriel2707)

---

Top Contributors

[![uriel2707](https://avatars.githubusercontent.com/u/89768?v=4)](https://github.com/uriel2707 "uriel2707 (19 commits)")

---

Tags

laravelpassportmongodbwebdecero

### Embed Badge

![Health badge](/badges/webdecero-webdecero-package-laravel-passport/health.svg)

```
[![Health](https://phpackages.com/badges/webdecero-webdecero-package-laravel-passport/health.svg)](https://phpackages.com/packages/webdecero-webdecero-package-laravel-passport)
```

###  Alternatives

[designmynight/laravel-mongodb-passport

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

68123.3k](/packages/designmynight-laravel-mongodb-passport)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
