designmynight/laravel-mongodb-passport
Composer 安装命令:
composer require designmynight/laravel-mongodb-passport
包简介
A package to allow laravel/passport use with jenssegers/laravel-mongodb
关键字:
README 文档
README
No longer maintained
This package is no longer maintained. Recent contributions are part of our own migration to the official Laravel MongoDB package and their recommended approach for using Passport with MongoDB.
Laravel MongoDB Passport
A service provider to add support for Laravel Passport and MongoDB.
Table of contents
Installation
Installation using composer:
composer require designmynight/laravel-mongodb-passport
You need to have your App\User class extend DesignMyNight\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.
<?php namespace App; use Illuminate\Notifications\Notifiable; use DesignMyNight\Mongodb\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; }
Laravel version 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 | 10.x | 3.x |
And add the service provider in config/app.php:
DesignMyNight\Mongodb\MongodbPassportServiceProvider::class,
For usage with Lumen, add the service provider in bootstrap/app.php.
$app->register(DesignMyNight\Mongodb\MongodbPassportServiceProvider::class);
The service provider will overide 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.
designmynight/laravel-mongodb-passport 适用场景与选型建议
designmynight/laravel-mongodb-passport 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 127.82k 次下载、GitHub Stars 达 66, 最近一次更新时间为 2018 年 01 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mongodb」 「laravel」 「passport」 「laravel-passport」 「designmynight」 「laravel-mongodb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 designmynight/laravel-mongodb-passport 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 designmynight/laravel-mongodb-passport 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 designmynight/laravel-mongodb-passport 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Generates Symfony2 documents, forms and CRUD
A package to allow laravel/passport use with mongodb/laravel-mongodb
Multiauth and custom grants for laravel passport
MongoDB Adapter to be used with Laminas Paginator
Simple laravel passport multiple user authentication
Mapper for accessing resources in KWCMS
统计信息
- 总下载量: 127.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 67
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-11