Browse Source

Add StoryView Model

Daniel Supernault 6 years ago
parent
commit
eb652bf339
1 changed files with 13 additions and 0 deletions
  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);
+	}
+}