In case of you want to add class by condition.
```
Form::text('name', null, ['class' => [
'form-control-,
$error ? 'is-invalid' : '',
]]);
```
In case of you want to add class by condition.
```
Form::text('name', null, ['class' => [
'form-control-,
$error ? 'is-invalid' : '',
]]);
```