hasOne(Client::class); } public function primary_contact() { $this->where('is_primary', true); } }