Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 6f74c4b

Browse files
committed
Update README.md
1 parent 13de523 commit 6f74c4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Now all components can be referenced like so:
338338

339339
### Error messages
340340

341-
By the default, the errors messages are positioned under the element. To show these messages, we created a `FormErrors` component. You can manually use this component as well.
341+
By the default, the errors messages are positioned under the element. To show these messages, we created a `FormErrors` component. You can manually use this component as well. The element takes an optional `bag` attribute to specify the `ErrorBag`, which defaults to `default`.
342342

343343
```blade
344344
<x-form>
@@ -347,6 +347,8 @@ By the default, the errors messages are positioned under the element. To show th
347347
<!-- other elements -->
348348
349349
<x-form-errors name="company_name" />
350+
351+
<x-form-errors name="company_name" bag="register" />
350352
</x-form>
351353
```
352354

0 commit comments

Comments
 (0)