pdustdar/passport-jwt-mongodb

There is no license information available for the latest version (V1.0.1) of this package.

V1.0.1 2021-02-22 07:38 UTC

This package is auto-updated.

Last update: 2024-04-22 14:53:37 UTC


README

This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

Installation

Install the package via Composer:

$ composer require pdustdar/passport-jwt-mongodb

Service Provider

add the service provider to config/app.php:

Pdustdar\MongoPass\MongoPassServiceProvider::class,

Eloquent

Extending the base model

This package includes a MongoDB enabled Eloquent class that you can use to define models for corresponding collections.

use Pdustdar\MongoPass\User as Authenticatable;

class User extends Authenticatable
{
    //
}