tymondesigns/jwt-auth

Class 'Lcobucci\JWT\Builder' not found

Aperta

#1460 aperta il 22 gen 2018

 (8 commenti) (1 reazione) (0 assegnatari)PHP (1542 fork)batch import
help wanted

Metriche repository

Star
 (11.481 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Subject of the issue

First, I'm sorry for reporting a bug on 1.0.*@dev . Looks like that's the widely used branch for some of the shortcomings on releases.

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.5.32
Package version 1.0.0-dev
PHP version 7.1.2

Steps to reproduce

  • Persistent on boot.

Expected behaviour

not throw the error experienced.

Actual behaviour

I get Class 'Lcobucci\JWT\Builder' not found Here:

protected function registerLcobucciProvider()
{
    $this->app->singleton('tymon.jwt.provider.jwt.lcobucci', function ($app) {
        return new Lcobucci(
            new JWTBuilder(),
            new JWTParser(),
            $this->config('secret'),
            $this->config('algo'),
            $this->config('keys')
        );
    });
}

Guida contributor