Skip to content

BadMethodCallException: Method [loginUsingId] does not exist. #44439

@kali-kb

Description

@kali-kb
  • Laravel Version: ^9.19
  • PHP Version: 8.1.6
  • Database Driver & Version: pgsql

Hello, I'm a laravel begginer and I'm facing a problem, the problem is that I was using the Auth facade to handle authentication and the framework is throwing a BadMethodCallException: Method [loginUsingId] does not exist. error when i call loginUsingId method on Auth like Auth::loginUsingId($id) by using an actual user id that exists in the database, I double checked the documentation and the method exists, so any help would be appreciated, here is the code.

code

Stack trace

stack-trace

Steps I Used To Reproduce:
I checked for subsequent updates of the framework to see what has changed or been introduced in which case I would
try to perform a safe version update to my current version of Laravel but I found out that's not the case.

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