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

Uncaught Error: Call to undefined method Auth::hasUser() #277

Closed
dmyers opened this issue Oct 30, 2018 · 3 comments
Closed

Uncaught Error: Call to undefined method Auth::hasUser() #277

dmyers opened this issue Oct 30, 2018 · 3 comments

Comments

@dmyers
Copy link

dmyers commented Oct 30, 2018

The Auth Guard contract does not require a hasUser() method and so this line does not work in all situations. Someone tried to add it to the contract in the laravel/framework, but the PR was rejected.

Thoughts?

@themsaid
Copy link
Member

switched to use check()

@dmyers
Copy link
Author

dmyers commented Oct 31, 2018

Thanks @themsaid. I really appreciate your work.

@meysam69
Copy link

meysam69 commented Dec 11, 2023

I'm going to implement a custom gaurd but I can't understand exacatly what the method hasUser suppose to do? can anyone help me with that?
@themsaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants