Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Laravel 5.4 #67

Closed
achegedus opened this issue Jan 31, 2017 · 2 comments
Closed

Error with Laravel 5.4 #67

achegedus opened this issue Jan 31, 2017 · 2 comments

Comments

@achegedus
Copy link

I was running fine with 5.3, but since I upgraded, I'm now getting this error when I try to use the auth0.jwt middleware:

BindingResolutionException in Container.php line 804: Target [Auth0\Login\Contract\Auth0UserRepository] is not instantiable while building [\Auth0\Login\Middleware\Auth0JWTMiddleware].

Any ideas on what's up, or a plan to support 5.4?

@glena
Copy link
Contributor

glena commented Feb 1, 2017

It will support 5.4, not ETA yet.

Didnt check the changelog yet, but seems that something changed with the DI bindings, are you bingding Auth0\Login\Contract\Auth0UserRepository to the actual implementation

    $this->app->bind(
        'Auth0\Login\Contract\Auth0UserRepository',
        'Auth0\Login\Repository\Auth0UserRepository');

@glena
Copy link
Contributor

glena commented Feb 1, 2017

Update, it might be related to https://laravel.com/docs/5.4/upgrade, check the Binding Classes With Leading Slashes section.

@glena glena closed this as completed Feb 23, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants