title: Laravel validation allow image or pdf
body: <p>I have a file input in Laravel and I would like it to only allow images or pdf. How do I do this in controller validation?</p>
  
  <pre><code>$validator = Validator::make($request-&gt;all(), [
      'image' =&gt; 'image',
  ]);
  </code></pre>