belongsTo(User::class,'uid','id'); } public function users() { return $this->belongsTo(User::class,'mobile','mobile'); } public function get_user(){ return $this->belongsTo(User::class,'mobile','mobile')->whereIn('cert_status',[3,6]); } }