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

Fix Session store not set on request #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aroutinr
Copy link

This change fixes the error in vendor/laravel/framework/src/Illuminate/Http/Request.php:560 when the request does not have a session. This happens to me when I use the package with Laravel Passport.

The previous evaluation was incorrect since if the request does not have a session but the configuration variable is not "off" it still evaluates to false and the execution of the code continues.

With the change I made in this PR the execution of the code will continue only when the request has a session and config('timezone.flash') is not "off".

Setting the config('timezone.flash') to "off" also fixes the problem as mentioned here but i think is not the right solution for the problem: #59 (comment)

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

Successfully merging this pull request may close these issues.

None yet

1 participant