Skip to content

Commit 309a923

Browse files
author
James Wigger
authored
Added instructions for help text to README
1 parent aa83326 commit 309a923

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ Boolean fields do not take additional options, only true or false:
8383
{!! RootForms::confirm('terms_agreement', 'Have you read the terms & conditions?', old('terms_agreement')) !!}
8484
```
8585

86+
If you need to set some help text, for example to let users know what data can be entered into a field, the `hint()` method can be called before the field.
87+
88+
```blade
89+
{!! RootForms::hint('Files must be png, jpg or gif. Files cannot exceed 2mb in size.') !!}
90+
{!! RootForms::file('avatar', 'Profile photo') !!}
91+
```
92+
8693
## Customising
8794

8895
The package templates are built for Bootstrap v4. If you wish to customise these and use your own styling and classes the views can be published using artisan:

0 commit comments

Comments
 (0)