Download the PHP package hypnodev/laravel-mongodb-passport without Composer
On this page you can find all versions of the php package hypnodev/laravel-mongodb-passport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hypnodev/laravel-mongodb-passport
More information about hypnodev/laravel-mongodb-passport
Files in hypnodev/laravel-mongodb-passport
Package laravel-mongodb-passport
Short Description A package to allow laravel/passport use with jenssegers/laravel-mongodb
License MIT
Homepage https://github.com/designmynight/laravel-mongodb-passport
Informations about the package laravel-mongodb-passport
Laravel MongoDB Passport
A service provider to add support for Laravel Passport and MongoDB.
Table of contents
- Installation
- Compatibility
Installation
Installation using composer:
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.
Then now to install passport, but with Mongodb support, please run: php artisan mongodb-passport:install
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 |
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x | 1.2.x |
8.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x, 9.x, 10.x | 3.0.0 |
For Laravel version < 5.x, add the service provider in config/app.php
:
For usage with Lumen, add the service provider in bootstrap/app.php
.
The service provider will override the default laravel passport models in order to use mongodb'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 MongoDB.
All versions of laravel-mongodb-passport with dependencies
illuminate/support Version ^5.5 || ^6.0 || ^7.0 || ^8.0
jenssegers/mongodb Version 3.3.* || 3.4.* || 3.5.* || 3.6.* || 3.7.* || 3.8.*
laravel/passport Version 6.0.* || 7.0.* || 7.4.* || 7.5.* || ^8.0 || ^9.0 || ^10.0