Phosphorum\Search\Indexer::createPostArray PHP 메소드

createPostArray() 보호된 메소드

protected createPostArray ( Posts $post )
$post Phosphorum\Models\Posts
    protected function createPostArray(Posts $post)
    {
        return ['slug' => "discussion/{$post->id}/{$post->slug}", 'title' => $post->title, 'created' => $post->getHumanCreatedAt()];
    }