Socieboy\Forum\Jobs\Conversations\StartConversation::prepareDate PHP Method

prepareDate() public method

Prepare array to fill the conversation model.
public prepareDate ( ) : array
return array
    public function prepareDate()
    {
        $databasePrefix = config('forum.database.prefix') ? config('forum.database.prefix') . '_' : '';
        return ['user_id' => auth()->user()->id, 'title' => $this->title, 'topic_id' => $this->topic_id, 'message' => $this->message, 'slug' => Slug::generateUniqueSlug($this->title, $databasePrefix . 'conversations')];
    }