two4zero / laravel-mongodb-passport
laravel mongodb passport
0.1.6
2018-07-02 01:56 UTC
Requires
- jenssegers/mongodb: ^3.4
- laravel/passport: ^6.0
This package is not auto-updated.
Last update: 2024-10-27 06:02:39 UTC
README
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;