Dingo\Api\Provider\DingoServiceProvider::registerAuth PHP Method

registerAuth() protected method

Register the auth.
protected registerAuth ( ) : void
return void
    protected function registerAuth()
    {
        $this->app->singleton('api.auth', function ($app) {
            return new Auth($app['Dingo\\Api\\Routing\\Router'], $app, $this->config('auth'));
        });
    }