Download the PHP package reshadman/laravel-mongo-auth without Composer
On this page you can find all versions of the php package reshadman/laravel-mongo-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reshadman/laravel-mongo-auth
More information about reshadman/laravel-mongo-auth
Files in reshadman/laravel-mongo-auth
Package laravel-mongo-auth
Short Description A native mongo db auth driver on Laravel 5's default auth module.
License
Informations about the package laravel-mongo-auth
Laravel Native MongoDB Authentication Driver
This package does not require any external MongoDB related dependencies except the Php MongoDB Driver and simply uses to extend the native Laravel Auth module.
Installation
- Run in your project's composer root.
- Add the service provider to your app.
- Run command to generate package config files.
- In config set the to :
Approach
An instance of is passed to like below :
From :
The above code needs to be available in IoC container which is an instance of . If you set the config option to true, the package will create a new binding for that.
You may also create your own driver with another driver name and pass your own config and mongo collection instance to it.
The config
If you pass a closure to this config key then the package will use this closure to get the connection to connect to mongodb. Usefull when using Doctrine Mongo db package or alternatives.
If you set the above option to the the package will use a singleton shared instance ( ) which has key in the container.
All versions of laravel-mongo-auth with dependencies
illuminate/support Version 5.0.*
illuminate/auth Version 5.0.*