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