You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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 andctx.session
is defined, the hook will set some flash data with the details of the upload error.The text was updated successfully, but these errors were encountered: