tymondesigns/jwt-auth

Class 'Lcobucci\JWT\Builder' not found

Open

#1460 opened on Jan 22, 2018

View on GitHub
 (8 comments) (1 reaction) (0 assignees)PHP (11,481 stars) (1,542 forks)batch import
help wanted

Description

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')
        );
    });
}

Contributor guide