MongolidLaravel\MongolidServiceProvider::extendsAuthManager PHP Method

extendsAuthManager() public method

Registers mongoLid Driver in AuthManager.
public extendsAuthManager ( ) : void
return void
    public function extendsAuthManager()
    {
        // MongoLid Auth Driver
        $this->app['auth']->extend('mongoLid', function ($app) {
            $provider = new MongolidUserProvider($app['hash'], $app['config']->get('auth.model'));
            return new Guard($provider, $app['session.store']);
        });
    }