Skip to content

Commit 945c68f

Browse files
author
Fredrick Peter
committed
config_form class error
1 parent 44b4272 commit 945c68f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,19 @@ $form->post()->submit([
143143
| request | String `POST\|GET\|ALL` Default `POST` |
144144
| error_type | Boolean `true\|false` Default `false` |
145145
| csrf_token | Boolean `true\|false` Default `true` |
146+
| class | Array `error\|success` error class type to be returned on both success and failure |
147+
148+
146149

147150
```
148151
config_form([
149152
'request' => 'POST',
150153
'error_type' => true,
151154
'csrf_token' => true,
155+
'class' => [
156+
'error' => 'form__error',
157+
'success' => 'form__success'
158+
]
152159
]);
153160
```
154161

0 commit comments

Comments
 (0)