App\Providers\UserServiceProvider::registerTokenRepository PHP Method

registerTokenRepository() protected method

Register the token repository implementation.
protected registerTokenRepository ( ) : void
return void
    protected function registerTokenRepository()
    {
        $this->app->singleton('auth.password.tokens', function ($app) {
            $connection = $app['xe.db']->connection('user');
            // The database token repository is an implementation of the token repository
            // interface, and is responsible for the actual storing of auth tokens and
            // their e-mail addresses. We will inject this table and hash key to it.
            $table = $app['config']['auth.password.table'];
            $key = $app['config']['app.key'];
            $expire = $app['config']->get('auth.password.expire', 60);
            return new DatabaseTokenRepository($connection, $table, $key, $expire);
        });
    }