mvjacobs/laravel-mongodb-passport 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mvjacobs/laravel-mongodb-passport

最新稳定版本:v2.0.0

Composer 安装命令:

composer require mvjacobs/laravel-mongodb-passport

包简介

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

README 文档

README

Latest Stable Version Total Downloads

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

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.

统计信息

  • 总下载量: 23.32k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-06