title: Make validate to be Only integer input in laravel
body: <p>I need to make validate the (request_number) input is the Only integer and show a Message if the student writes a string as an example.
  the Message if the user write the existing number is (the number of your order exists)
  and the message if the user writes the non-integer value is (the input should be the Only Number)
  Now I want to make double validation on (request_number).</p>
  
  <p>this is my store in my controller</p>
  
  <pre><code>     public function store(Request $request)
       {
          $excuse = new Student();
          $excuse-&gt;request_number = $request-&gt;input('request_number');
          $validatedData = $request-&gt;validate([
              'request_number' =&gt; Rule::unique('students')-&gt;where(function ($query)
              {
                return  $query-&gt;whereIn('status_id',[2,4,6,5]);
              })]);
  
          $excuse-&gt;student_id = Auth::guard('web')-&gt;user()-&gt;id;
          $excuse-&gt;status_id = 1;
          $excuse-&gt;college_id = Auth::guard('web')-&gt;user()-&gt;college_id;
          $excuse-&gt;save();
          return redirect('/students');
       }
  </code></pre>
  
  <p>and this is my form to make a request</p>
  
  <pre><code>&lt;form method="post" action="{{url('/student')}}" enctype="multipart/form-data"&gt;
  @csrf
  
    &lt;h1&gt; Make order FORM&lt;/h1&gt;
  
    &lt;div class="form-group"&gt;
      &lt;label for="requestnumber"&gt;   write the Request Number &lt;/label&gt;&lt;br&gt;
      &lt;input type="text" id="request_number" name="request_number"class="form-control" minlength="5" style="width:50%" required &gt;
    &lt;/div&gt;
    @if ($errors-&gt;any())
      &lt;div class="alert alert-danger"&gt;
          &lt;ul&gt;
              @foreach ($errors-&gt;all() as $error)
                  &lt;li&gt; the number of request is exists &lt;/li&gt;
              @endforeach
          &lt;/ul&gt;
      &lt;/div&gt;
  @endif
    &lt;br&gt;
       &lt;button type="submit" class="btn btn-primary"&gt;send&lt;/button&gt;&lt;br&gt;
        &lt;/form&gt;
  </code></pre>