Right now, I can check for a field having a validation error in blade by using:
@if($errors->has('field_name'))
<div class="help-block">
Lorem Ipsum
</div>
@endif
In my controller, I am using the not_in rule:
"field_name" => "required|string|not_in:
I want to know, can I change the if statement to check only for the not_in rule?
Example:
@if($errors->has('field_name.not_in'))