2016-11-28 40 views

回答

2

您需要在模型上實現toSearchableArray方法。

public function toSearchableArray() 
{ 
    return [ 
     'objectID' => $this->id, 
     'title' => $this->title, 
     'content' => $this->content, 
     'author' => $this->author, 
    ] 
} 
相關問題