In login model I have implement relation with picture table
function picture () {
return $this->hasOne('App\Picture');
}
Now I want data where Picture.picture_status = 1 and User.user_status = 1
Login::with('picture')->where('picture_status', 1)->where('user_status',1);
but where condition is not working with picture table, how can i implement and condition on both table
first()
at the end. – Erotomania