Git Product home page Git Product logo

Comments (6)

rneal-ck avatar rneal-ck commented on May 26, 2024 1

@mikefrancis We're running into the same issue as @vinnyvimto on our end – my understanding is the framework source link above calls getUserResolver() with the $guard as a parameter, but returns a Illuminate\Foundation\Auth\User, not the Illuminate\Contracts\Auth\Guard. I updated the PR I pushed to use getAuthIdentifier() (from Illuminate\Auth\Authenticatable, which User implements) instead of id(), which is working on our end now and should fix the tests as well.

from laravel-unleash.

mikefrancis avatar mikefrancis commented on May 26, 2024

@vinnyvimto It seems like you know how to fix the issue, would be great if you could raise a PR instead?

from laravel-unleash.

stale avatar stale commented on May 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from laravel-unleash.

rfussien avatar rfussien commented on May 26, 2024

Hello,

Why has it been closed ? This bug is preventing this project to work properly with the basic features of unleash. :/

from laravel-unleash.

mikefrancis avatar mikefrancis commented on May 26, 2024

@rfussien If it's so important, can I ask if there issomething preventing you from PRing a fix?

from laravel-unleash.

mikefrancis avatar mikefrancis commented on May 26, 2024

@vinnyvimto

$user on this line should be an instance of either Illuminate\Contracts\Auth\Guard or null from looking at the framework source.

The strategy checks for null, and any Guard has to implement the id() method, so this looks like a problem with your guard? Are you using something custom which doesn't implement that method?

from laravel-unleash.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.