title: Laravel validation for a number which should be exactly 10 digits
body: <p>I am trying to validate a form which has phone number and we want that to be exactly 10 digits. But it gives errors even when the input is right I am using the following code in the controller so please advise as to what needs to be changed.</p>
  
  <pre><code>public function tytraining(Request $request)
      {
  
          $this-&gt;validate($request, [
              'txt_name'  =&gt; 'required',
              'txt_email' =&gt; 'required|email',
              'txt_phone' =&gt; 'required|numeric|between:9,11'
          ]);
  
          $name = Input::get('txt_name');
  
          $email = Input::get('txt_email');
  
          $phone = Input::get('txt_phone');
  
          $type = "bls-training";
          $url = '?' . Input::get('url');
  
          $medicalRequest = new ParseObject("MedicalRequest");
  
          $medicalRequest-&gt;set("name", $name);
          $medicalRequest-&gt;set("email", $email);
          $medicalRequest-&gt;set("phone", $phone);
          $medicalRequest-&gt;set("type", $type);
          $medicalRequest-&gt;set("requestMessage", "training");
          $medicalRequest-&gt;set("url", $url);
  
          try {
              $medicalRequest-&gt;save();
  
          } catch (ParseException $ex) {
              echo(' Some Error Occured');
          }
      }
  </code></pre>
  
  <p>Please advise how should I do the validation through Laravel..</p>
  
  <p>Thank you all in advance for spending your valuable time and going through my concern and helping me out.</p>