title: Laravel form input integer length
body: <p>In Laravel form input validation, you can specify a minimum and a maximum length of a given input field.</p>
  
  <pre><code>$inputRules = [
      'postCode' =&gt; 'min:3|max:8'
  ];
  </code></pre>
  
  <h3>Validation outcome</h3>
  
  <ul>
  <li>'BA45TZ' = <code>true</code></li>
  <li>'FF'     = <code>false</code></li>
  <li>'GH22 55XYZ' = <code>false</code></li>
  </ul>
  
  <p>However if I do the same for a number, it will validate whether the input is less than or greater than the input, then return on that.</p>
  
  <pre><code>$inputRules = [
      'cv2' =&gt; 'min:3|max:4'
  ];
  </code></pre>
  
  <h3>Validation outcome</h3>
  
  <ul>
  <li>'586' = <code>false</code></li>
  <li>'4'     = <code>true</code></li>
  <li>'2' = <code>false</code></li>
  <li>'3' = <code>true</code></li>
  </ul>
  
  <p>I actually want to validate a numbers <em>length</em> not it's numerical value. I can't figure out how to do this. Google has been no help, or I am not searching the right thing.</p>
  
  <p>Anybody had any experience with this?</p>
  
  <p>EDIT: I have answered my own question. I had missed Laravels <code>digits_between</code>.</p>