title: Laravel scope - pass 2 parameters to scope
body: <p>I have a status column in my table with 3 states (register, forwarded, done).</p>
  
  <p>I have a different links in my view for filter the results:</p>
  
  <pre><code>&lt;li&gt;{{ link_to_route('psa.index', 'Eingetragen', array('f' =&gt; 'register'), $attributes = array('title' =&gt; 'Eingetragen!' )) }}&lt;/li&gt;
  &lt;li&gt;{{ link_to_route('psa.index', 'Wird erledigt', array('f' =&gt; 'forwarded'), $attributes = array('title' =&gt; 'Wird erledigt!' )) }}&lt;/li&gt;
  &lt;li&gt;{{ link_to_route('psa.index', 'Unerledigt', array('f' =&gt; 'forwarded', 'register'), $attributes = array('title' =&gt; 'Wird erledigt!' )) }}&lt;/li&gt;
  </code></pre>
  
  <p>Here comes the controller snippet:</p>
  
  <pre><code>if(Input::get('f'))
          {
              $reports = PsaReports::filter(Input::get('f'))-&gt;with('automat', 'failure')-&gt;orderBy('incoming_day', 'desc')-&gt;orderBy('incoming_time', 'desc')-&gt;paginate(30);
          }
  </code></pre>
  
  <p>And here the scope:</p>
  
  <pre><code>public function scopeFilter($filter, $search)
      {
          return $filter-&gt;where('status', $search);
      }
  </code></pre>
  
  <p>With the third link above i want to scope the status register <strong>and</strong> forwarded. The link passes two parameters, how can i pass them to the scope?</p>
  
  <p>Or is it only possible with a second scope?</p>
  
  <p>many thanks</p>