Something like this and you can change the if condition as you needed.
@if($errors->first('identifier'))
<div class="{{ $errors->first('identifier') or 'has-error' }}">
@endif
This worked for me
<div class="form-group {{ ($errors->first('release')) ? 'has-error' :''}}">
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community