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

Sessions : support flash data #521

Closed
LoicPoullain opened this issue Aug 22, 2019 · 2 comments
Closed

Sessions : support flash data #521

LoicPoullain opened this issue Aug 22, 2019 · 2 comments

Comments

@LoicPoullain
Copy link
Member

LoicPoullain commented Aug 22, 2019

Issue

Sometimes we may wish to store items in the session only for the next request.

For example, when users enter wrong credentials, they are redirected to the login page again, and we may want this time to render the page with a specific message that says "Incorrect email or password". If the user refreshes the page, the message then disappears.

External links

https://laravel.com/docs/5.8/session#flash-data

Additional notes

After this, we will be able to add a redirectTo option to @ValidateMultipartFormDataBody. In this case, if the upload fails and ctx.session is defined, the hook will set some flash data with the details of the upload error.

@AminTaghikhani
Copy link
Contributor

AminTaghikhani commented May 28, 2020

Hi there,
check this out connect-flash

@LoicPoullain
Copy link
Member Author

Feature added in v2

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

No branches or pull requests

2 participants