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
{{ message }}
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
Besides being unnecessary, this is a bad practice because, depending on the language, the name of the attribute will not necessarily be in the first two words.
By default, Laravel's validation messages include the attribute name, contrary to the backend specification.
This was achieved by removing the first two words of each error message during runtime, instead of editing the language file directly.
laravel-realworld-example-app/app/Exceptions/Handler.php
Lines 93 to 99 in 86128fc
Besides being unnecessary, this is a bad practice because, depending on the language, the name of the attribute will not necessarily be in the first two words.
The removal of attributes was even proposed by Laravel-Lang.
The text was updated successfully, but these errors were encountered: