Browse Source

Add StoryItem Model

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