diff --git a/src/Searchable.php b/src/Searchable.php index 889c813..7ea4ead 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -19,6 +19,19 @@ public function getSearchIndex() return $this->searchIndex ?? $this->getTable(); } + /** + * Set the index this model is to be added to + * + * @param string + * @return self + */ + public function setSearchIndex(string $index) + { + $this->searchIndex = $index; + + return $this; + } + /** * Get the search type associated with the model. *