title: laravel Eloquent where clause
body: <p>I'm trying to do get all the users from a specific country via Eloquent.</p>
  
  <p>The problem is that I get all the record, the where clause doesn't work.</p>
  
  <pre><code>$res = User::with(array('country' =&gt; function($query) {
            $query-&gt;where('country', '=', 'salope');
         }))-&gt;get();
  </code></pre>
  
  <p>Following this pattern from the laravel documentation</p>
  
  <pre><code>$users = User::with(array('posts' =&gt; function($query)
  {
      $query-&gt;where('title', 'like', '%first%');
  }))-&gt;get();
  </code></pre>
  
  <p>My models :</p>
  
  <pre><code>class User extends SentryUserModel {
      public function country() {
  
          return $this-&gt;belongsTo('country','country_id');
      }
  }
  class Country extends Eloquent {
      public function users() {
  
          return $this-&gt;hasMany('users');
      }
  
  }
  </code></pre>
  
  <p>What am I doing wrong ?</p>