title: Laravel FormRequest message and integer not working
body: <p>FormRequest page</p>
  
  <pre><code>class UserSaveRequest extends FormRequest{
  ....
   public function rules()
      {
          return [
              'st_email'=&gt;'required|email',
              'st_USN'=&gt;'required|max:15',
              'st_phone'=&gt;'max:15',
              'st_address'=&gt;'string|max:30',
              'st_department'=&gt;'string|max:50',
              'st_semester'=&gt;'max:4'
  
          ];
      }
      public function message(){
          return [
              'required' =&gt;'not null',
              'string'   =&gt;'string',
              'st_USN.max'   =&gt;'max15',
              'st_phone.max'   =&gt;'max15',
              'st_address.max'   =&gt;'max30',
              'st_department.max'   =&gt;'max50',
              'st_semester.max'   =&gt;'max4',
              'email'    =&gt;'email plz'
  
          ];
      }
  }
  </code></pre>
  
  <p>In the blade.php page, i just add this code.</p>
  
  <pre><code>@if ($errors-&gt;any())
      &lt;div class="alert alert-danger"&gt;
          &lt;ul&gt;
          &lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
              @foreach ($errors-&gt;all() as $error)
                  &lt;li&gt;{{ $error }}&lt;/li&gt;
              @endforeach
          &lt;/ul&gt;
      &lt;/div&gt;
      @endif
  </code></pre>
  
  <p>In the controller part</p>
  
  <pre><code>public function saveStudent(UserSaveRequest $request){
          .....
      }
  </code></pre>
  
  <p>I wanna show some error message by my setting, but it always not working.</p>
  
  <p>In addition, if i added the condition of the integer, the error message will always show "max" error. In fact, the size of the input data is not over 4. </p>
  
  <pre><code>'st_semester'=&gt;'max:4|integer'
  </code></pre>
  
  <blockquote>
    <p>The st semester may not be greater than 4.</p>
  </blockquote>
  
  <p>By the way, single rule will be allowed. </p>
  
  <pre><code>'st_semester'=&gt;'max:4' or 'st_semester'=&gt;'integer'
  </code></pre>
  
  <p>Have anyone know how to solve these problems?</p>