title: Difference between whereOr and orWhere in laravel
body: <p>I have used <code>whereOr</code> and <code>orWhere</code> in my code in <strong>Laravel</strong> both works but at times gives different result </p>
  
  <pre><code>$user_query = User::select( 'users.id', 'users.username','users.first_name','users.last_name', 'users.photo' )
                      -&gt;where('users.status',1)
                      -&gt;where('users.id','!=',$id)
                      -&gt;where('users.username','like','%'.$searchkey.'%')
                      -&gt;orWhere('users.first_name','like','%'.$searchkey.'%')
                      -&gt;orwhere('users.last_name','like','%'.$searchkey.'%')-&gt;get();
  
                      // -&gt;whereOr('users.first_name','like','%'.$searchkey.'%')
                      // -&gt;whereOr('users.last_name','like','%'.$searchkey.'%')-&gt;get();
  </code></pre>
  
  <p>What's the difference between <code>whereOr</code> and <code>orWhere</code></p>