If I have a title and a description in my toSearchableArray method, how do I prioritize the title over the description?
/**
* Get the indexable data array for the model.
*
* @return array
*/
public function toSearchableArray()
{
$array = [
'id' => $this->id,
'title' => $this->title,
'description' => $this->description
];
return $array;
}
If I have a title and a description in my
toSearchableArray
method, how do I prioritize the title over the description?