Laravel 6.9.0 validation.php translated messages not showing if they do not start with a variable / property

后端 未结 1 1947
眼角桃花
眼角桃花 2021-01-26 11:59

So I translated by hand the error messages in the validation.php file for the /en/ locale since the site is almost finished and I figured since it needs only one language (not E

相关标签:
1条回答
  • 2021-01-26 12:42

    So after days of digging around, it turns out that when a form submits a huge textarea content, such as like 2 paragraphs of text, the form input is sent to a cookie in order to flash the errors when the validation fails. But since the textarea contains a lot of text, the validation fails, but the error flash also fails, silently,and $errors is left empty.

    https://laracasts.com/index.php/discuss/channels/general-discussion/laravel-5-not-showing-validation-errors-when-textarea-is-filled-with-lots-of-text?

    A possible solution is to use FILE for the session driver in session.php, as mentioned in the issue linked above.

    0 讨论(0)
提交回复
热议问题