webdecero/webdecero-package-laravel-passport
最新稳定版本:2.0.2
Composer 安装命令:
composer require webdecero/webdecero-package-laravel-passport
包简介
Enable use of laravel/passport with mongodb/laravel-mongodb
README 文档
README
Enable use of laravel/passport with mongodb/laravel-mongodb
Table of contents
Installation
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at:
- https://www.mongodb.com/docs/drivers/php-drivers/
- https://www.mongodb.com/docs/drivers/php/laravel-mongodb/current/quick-start/
Requeriments
PHP extension
- php: ^8.1
WARNING: The old mongo PHP driver is not supported.
Laravel version Compatibility
| Laravel | Package | Passport |
|---|---|---|
| 10.x | 1.x | 11.10.* |
| 11.x | 2.x | 12.x |
Installation using composer:
composer require webdecero/webdecero-package-laravel-passport
Optional Add the service provider to config/app.php:
Webdecero\Laravel\Passport\PassportServiceProvider::class
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
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
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-07