Update searchable key name

This commit is contained in:
David Bomba 2024-11-21 16:45:42 +11:00
parent b375a0e58c
commit d8f841262e
3 changed files with 14 additions and 0 deletions

View File

@ -286,6 +286,11 @@ class Client extends BaseModel implements HasLocalePreference
return $this->hashed_id; return $this->hashed_id;
} }
public function scoutKeyName()
{
return 'hashed_id';
}
public function getEntityType() public function getEntityType()
{ {
return self::class; return self::class;

View File

@ -190,6 +190,10 @@ class ClientContact extends Authenticatable implements HasLocalePreference
return $this->hashed_id; return $this->hashed_id;
} }
public function scoutKeyName()
{
return 'hashed_id';
}
/* /*
V2 type of scope V2 type of scope
*/ */

View File

@ -271,6 +271,11 @@ class Invoice extends BaseModel
return $this->hashed_id; return $this->hashed_id;
} }
public function scoutKeyName()
{
return 'hashed_id';
}
public function getEntityType() public function getEntityType()
{ {
return self::class; return self::class;