Skip to content

v5.6.9: Can set class attribute in array. (#521)

Compare
Choose a tag to compare
@tshafer tshafer released this 30 May 16:09
· 1 commit to 5.6 since this release
In case of you want to add class by condition.

```
Form::text('name', null, ['class' => [
    'form-control-,
    $error ? 'is-invalid' : '',
]]);
```