# Errors object
# errors.all
Returns an array with all the errors that happened.
Example:
{% for error in errors.all %}
{{ error }}
{% endfor %}
# errors.any
Returns true
if any error happened. Returns false
if not.
Example:
{% if errors.any %}
Please fix your validation errors.
{% endif %}
# errors.first.{field}
Returns the first message of error for an specific field.
Example:
{% if errors.has.email %}
<span class="text-red-500">
{{ errors.first.email }}
</span>
{% endif %}
# errors.has.{field}
Returns true
if there's any error for the specific field. Returns false
if not.