]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatBotLog.php
protocol chat bot messages
[alttp.git] / app / Models / ChatBotLog.php
diff --git a/app/Models/ChatBotLog.php b/app/Models/ChatBotLog.php
new file mode 100644 (file)
index 0000000..34d2feb
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+
+class ChatBotLog extends Model {
+
+       use HasFactory;
+
+       public function channel() {
+               return $this->belongsTo(Channel::class);
+       }
+
+       public function origin() {
+               return $this->morphTo();
+       }
+
+}