}
public function randomOfClass($class) {
- $line = $this->queryChatlog()
+ return $this->queryChatlog()
->where('classification', '=', $class)
->first();
- return $line ? $line->text_content : '';
}
public function queryChatlog() {
return Arr::join($entries, ', ', ' and ');
}
+ public function chat_bot_logs() {
+ return $this->hasMany(ChatBotLog::class);
+ }
+
public function crews() {
return $this->hasMany(ChannelCrew::class);
}