Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | protected function addClasses() |
||
51 | { |
||
52 | // Attach the error class if an error is displayed against this field |
||
53 | $errors = session()->get('errors', app(ViewErrorBag::class)); |
||
54 | if ($errors->has($this->name)) { |
||
55 | $this->labelClass[] = config('blade-form-components.styles.field.error'); |
||
56 | } |
||
59 |