title: where condition with HasOne laravel
body: <p>In login model I have implement relation with picture table</p>
  
  <pre><code>function picture () {
     return $this-&gt;hasOne('App\Picture');
  }
  </code></pre>
  
  <p>Now I want data where Picture.picture_status = 1 and User.user_status = 1 </p>
  
  <pre><code>Login::with('picture')-&gt;where('picture_status', 1)-&gt;where('user_status',1);
  </code></pre>
  
  <p>but where condition is not working with picture table, how can i implement and condition on both table </p>