Skip to content

dont assume an eloquent model #8

Open
@corbosman

Description

@corbosman

Hey, ive been looking at your package and I think you should consider changing the code to allow any kind of UserProvider. Right now you are newing up a model through the config file, but imo it would be better to do something like this:

$user = auth()->getProvider()->retrieveById($token->getClaim('sub'));

That way, any kind of userprovider would work, it doesn't depend on there being a findOrFail on the user model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions