title: Laravel query scope combination
body: <p>I'm using Laravel 4.2 Query Scopes but encountered a problem. </p>
  
  <p>My Model:</p>
  
  <pre><code>class SomeModel extends Eloquent {
      public function scopeS1($query) {
          return $query-&gt;where('field1', '=', 'S1');
      }
      public function scopeS2($query) {
          return $query-&gt;where('field2', '=', 'S2');
      }
  }
  </code></pre>
  
  <p>Now when I do <code>SomeModel::s1()-&gt;s2()-&gt;get();</code> it returns all results and doesn't filter by <code>S1</code> AND <code>S2</code>. Note also that I have no problem when I do</p>
  
  <pre><code>SomeModel::where('field1', '=', 'S1')-&gt;where('field2', '=', 'S2')-&gt;get()
  </code></pre>
  
  <p>So why is query scoping and doing anything here??</p>