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