title: Laravel 5 Eloquent where and orwhere
body: <p>i try to get results from table with multiple where and/or clauses. But I am not receiving the good result!</p>
  
  <pre><code>$queries = journal::where(function($query)
  {
  $term =Input::get('text');
  $query-&gt;where('titre', 'like', '%'.$term.'%')
      -&gt;where('etat','!=','9')
      -&gt;where('type', 0)
      -&gt;orWhere('type', 1);
  })-&gt;take(10)-&gt;get();    
  </code></pre>