tymondesigns/jwt-auth

Class 'Lcobucci\JWT\Builder' not found

开放

#1,460 创建于 2018年1月22日

 (8 条评论) (1 个反应) (0 位负责人)PHP (1,542 个派生)batch import
help wanted

仓库指标

星标
 (11,481 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南