Browse Source

Update Status model, add place relation

Daniel Supernault 6 năm trước cách đây
mục cha
commit
57edd32ed1
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      app/Status.php

+ 5 - 0
app/Status.php

@@ -403,4 +403,9 @@ class Status extends Model
         return $res[$audience];
     }
 
+    public function place()
+    {
+        return $this->belongsTo(Place::class);
+    }
+
 }