two4zero/laravel-mongodb-passport

0.1.6 2018-07-02 01:56 UTC

This package is not auto-updated.

Last update: 2024-10-27 06:02:39 UTC


README

Latest Stable Version Total Downloads License

laravel mongodb passport for laravel/passport v6.0.2

Installation

Installation using composer:

composer require two4zero/laravel-mongodb-passport

And add the trait in app/User.php:

Laravel API Authentication (Passport)

<?php

namespace App;

use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Jenssegers\Mongodb\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use HasApiTokens, Notifiable;