Skip to content

Return validation error on save/edit #1638

Answered by tabuna
artemklushin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @artemklushin. Form validation, as well as messages, rely on the error mechanism in laravel.
We have nothing special about this. Example:

return response()->back()->withErrors(['name' => 'The name is required']);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by artemklushin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants