hasOne("App\Models\Property", 'id', 'property_id'); } public function user() { return $this->hasOne("App\Models\User", 'id', 'user_id') ->where('status', '=', 1); } }