X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FChannel.php;h=8045a4194fa529561ba6a091c0aa7770beb18dce;hb=907f392f8d2fbadb3f53a277cc90ae080da6d476;hp=8af6a7d43e201e191651a4ab9b28fc7c11642ec5;hpb=147c5f43c5d41fa18e82edb6651fe5a37c789353;p=alttp.git diff --git a/app/Models/Channel.php b/app/Models/Channel.php index 8af6a7d..8045a41 100644 --- a/app/Models/Channel.php +++ b/app/Models/Channel.php @@ -32,6 +32,11 @@ class Channel extends Model { } public function randomOfClass($class) { + if (is_array($class)) { + return $this->queryChatlog() + ->whereIn('classification', $class) + ->first(); + } return $this->queryChatlog() ->where('classification', '=', $class) ->first();