浏览代码

Add StoryView Model

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

+ 13 - 0
app/StoryView.php

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