Browse Source

Update CollectionItem

Daniel Supernault 6 năm trước cách đây
mục cha
commit
a0bebad28c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      app/CollectionItem.php

+ 4 - 1
app/CollectionItem.php

@@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model;
 
 class CollectionItem extends Model
 {
-    //
+	public function collection()
+	{
+		return $this->belongsTo(Collection::class);
+	}
 }