title: How to validate integers and max float digits in one rule in laravel
body: <p>Hey guys I need to validate something on my laravel application and I don't know how.</p>
  <p>So if the user introduces <strong>1234.55</strong> it should allow it, because it have only 5 numbers, but if the user introduces <strong>12345678.55</strong> must reject!</p>
  <p>What I have until now.</p>
  <pre><code>return [
      'max_debit' =&gt; 'required|numeric|min:0'
  ];
  </code></pre>
  <p>I tried to use <code>digits_between</code>, but when I use this, the validation doesn't allow float numbers.</p>
  <p>So the rule should match:</p>
  <ul>
  <li>Integer numbers</li>
  <li>Float numbers -&gt; All greater or equal to 0</li>
  <li>Max digits: <code>9</code></li>
  <li>Accept: <code>1234.55</code></li>
  <li>Reject: <code>12345678.55</code></li>
  </ul>