title: Check if file is image or pdf
body: <p>I need to check if a file is a image or pdf in php/laravel.</p>
  
  <p>This is what I have now:</p>
  
  <pre><code>return $file['content-type'] == 'image/*';
  </code></pre>
  
  <p>In addition to the 'image/*' I need to add 'application/pdf'</p>
  
  <p>How could this be added?</p>
  
  <h2>Update</h2>
  
  <p>To be clearer, is there a way to add more allowable types without having to do a OR-condition. I got the answer now with in_array!</p>