paint-brush
[Laravel tips] How to redirect users to a specific URL/route when the validation failsby@djug
5,353 reads
5,353 reads

[Laravel tips] How to redirect users to a specific URL/route when the validation fails

by Youghourta Benali2mDecember 4th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

If you are using <a href="https://laravel.com/docs/5.7/validation#form-request-validation" target="_blank">Form Request</a> to validate your forms before you persist them in the database, when the validation fails, the user is usually redirected back to the same page that initiated the request.

Company Mentioned

Mention Thumbnail
featured image - [Laravel tips] How to redirect users to a specific URL/route when the validation fails
Youghourta Benali HackerNoon profile picture
Youghourta Benali

Youghourta Benali

@djug

L O A D I N G
. . . comments & more!

About Author

Youghourta Benali HackerNoon profile picture
Youghourta Benali@djug

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Freefoto