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

Auth::user() is null for AsyncWidgets #102

Closed
m4a1fox opened this issue Apr 7, 2018 · 6 comments
Closed

Auth::user() is null for AsyncWidgets #102

m4a1fox opened this issue Apr 7, 2018 · 6 comments

Comments

@m4a1fox
Copy link

m4a1fox commented Apr 7, 2018

Hi. First of all - thanks for that cool package.

One question. When I'm using @asyncWidget my Auth::user is null, if I use @widget - all works fine.

Is there are a way to make Auth::user working for @asyncWidget request? Thanks.

@arrilot
Copy link
Owner

arrilot commented Apr 8, 2018

Hi, what Laravel version do you use?

@m4a1fox
Copy link
Author

m4a1fox commented Apr 9, 2018

Laravel Framework 5.6.15

@arrilot
Copy link
Owner

arrilot commented Apr 9, 2018

@arrilot arrilot closed this as completed Apr 9, 2018
@m4a1fox
Copy link
Author

m4a1fox commented Apr 10, 2018

Same story. I've updated package, http://jmp.sh/6VZmO2r but @asyncWidget saying that \Auth::user() === NULL.

P.S. If that important - Laravel was updated to 5.6.16

@arrilot arrilot reopened this Apr 10, 2018
@arrilot
Copy link
Owner

arrilot commented Apr 10, 2018

Was package config published to your app? If so you need to add 'web' middleware to it

@m4a1fox
Copy link
Author

m4a1fox commented Apr 12, 2018

Yep. That help. Thanks for advice.

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

2 participants