浏览代码

Add StoryItem Model

Daniel Supernault 6 年之前
父节点
当前提交
d9f61d0424
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      app/StoryItem.php

+ 13 - 0
app/StoryItem.php

@@ -0,0 +1,13 @@
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+
+class StoryItem extends Model
+{
+    public function story()
+    {
+    	return $this->belongsTo(Story::class);
+    }
+}