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

Commit a2e5bee

Browse files
committed
Update README.md
1 parent c409f2c commit a2e5bee

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Publish the configuration file and Blade views with the following command:
233233
php artisan vendor:publish --provider="ProtoneMedia\LaravelFormComponents\Support\ServiceProvider"
234234
```
235235

236-
You can find the Blade views in the `resources/views/vendor/form-components` folder. In the `form-components.php` configuration file, you can change the location of the Blade view *per* component.
236+
You can find the Blade views in the `resources/views/vendor/form-components` folder. Optionally, in the `form-components.php` configuration file, you can change the location of the Blade view *per* component.
237237

238238
### Customize the components
239239

@@ -258,6 +258,20 @@ Now all components can be referenced like so:
258258
</x-tailwind-form>
259259
```
260260

261+
### Error messages
262+
263+
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.
264+
265+
```blade
266+
<x-form>
267+
<x-form-input name="company_name" :show-errors="false" />
268+
269+
<!-- other elements -->
270+
271+
<x-form-errors name="company_name" />
272+
</x-form>
273+
```
274+
261275
### Testing
262276

263277
``` bash

0 commit comments

Comments
 (0)