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')];
}