Преглед изворни кода

Update Status model, add place relation

Daniel Supernault пре 6 година
родитељ
комит
57edd32ed1
1 измењених фајлова са 5 додато и 0 уклоњено
  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);
+    }
+
 }