title: Where and If Statements Laravel Eloquent
body: <p>I have built a multi filter search for my website but I cant seem to find any documentation on multiple if statements inside of where for my search. </p>
  
  <p><strong>Returns Lots of Results</strong></p>
  
  <pre><code>$data = Scrapper::paginate(15);
  </code></pre>
  
  <p><strong>Returns none.. need it to be this way to have where statements with IF see bellow.</strong></p>
  
  <pre><code>$database = new Scrapper;
  $database-&gt;get();
  </code></pre>
  
  <p><strong>Example of what I want to do..</strong> </p>
  
  <pre><code>    $database = new Scrapper;
      if (isset($_GET['cat-id'])) {
          $database-&gt;where('cat_id', '=', $_GET['cat-id']);
      }
      if (isset($_GET['band'])) {
          $database-&gt;where('price', 'BETWEEN', $high, 'AND', $low);
      }
      if (isset($_GET['search'])) {
          $database-&gt;where('title', 'LIKE', '%'.$search.'%');
      }
      $database-&gt;get();
  </code></pre>