title: how should i give input box red colour in validation in laravel5.4
body: <p>When user click on the submit button I want to give that text box color as red.
  but Laravel comes up with the validation with message..</p>
  
  <p>How can we do the validation as red color text box?</p>
  
  <p>Here is my validation in controller:</p>
  
  <pre><code>protected function validator(array $data) {
      return Validator::make($data, [
          'first_name' =&gt; 'required|max:255',
          'last_name' =&gt; 'required|max:255',
          'email' =&gt; 'required|email|max:255|unique:users',
          'password' =&gt; 'required|min:6|confirmed',
          'contact_no' =&gt; 'required|numeric',
  
      ]);
  }
  </code></pre>
  
  <p>here is my view:</p>
  
  <pre><code>&lt;div class="form-group{{ $errors-&gt;has('first_name') ? ' has-error' : '' }}"&gt;
      &lt;label for="name" class="col-md-4 control-label"&gt;First Name&lt;/label&gt;
      &lt;div class="col-md-6"&gt;
          &lt;input id="first_name" type="text" class="form-control" name="first_name" value="{{ old('name') }}" placeholder="first name" required autofocus&gt;
           @if ($errors-&gt;has('first_name'))
               &lt;span class="help-block"&gt;
                   &lt;strong&gt;{{ $errors-&gt;first('first_name') }}&lt;/strong&gt;
               &lt;/span&gt;
           @endif
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group{{ $errors-&gt;has('last_name') ? ' has-error' : '' }}"&gt;
      &lt;label for="name" class="col-md-4 control-label"&gt;Last Name&lt;/label&gt;
      &lt;div class="col-md-6"&gt;
          &lt;input id="last_name" type="text" class="form-control" name="last_name" value="{{ old('last_name') }}" placeholder="last name" required autofocus&gt;
          @if ($errors-&gt;has('name'))
              &lt;span class="help-block"&gt;
                  &lt;strong&gt;{{ $errors-&gt;first('name') }}&lt;/strong&gt;
              &lt;/span&gt;
          @endif
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group{{ $errors-&gt;has('email') ? ' has-error' : '' }}"&gt;
      &lt;label for="email" class="col-md-4 control-label"&gt;E-Mail Address&lt;/label&gt;
      &lt;div class="col-md-6"&gt;
          &lt;input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="email" required&gt;
          @if ($errors-&gt;has('email'))
              &lt;span class="help-block"&gt;
                  &lt;strong&gt;{{ $errors-&gt;first('email') }}&lt;/strong&gt;
               &lt;/span&gt;
          @endif
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Can any one help me..please</p>