src/Models/Post.php
/**
     * Get the indexable data array for the model.
     */
Get the indexable data array for the model.
Get the indexable data array for the model .
public function toSearchableArray(): array
    {
        return [
            'title' => $this->title,
            'annotation' => $this->annotation,
            'content' => $this->content,
        ];
    }
public function toSearchableArray ( ) : array { return [ 'title' => $ this -> title , 'annotation' => $ this -> annotation , 'content' => $ this -> content , ] ; }
Get the indexable data array for the model.
Get the indexable data array for the model .