Sfoglia il codice sorgente

Add StoryView Model

Daniel Supernault 6 anni fa
parent
commit
eb652bf339
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  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);
+	}
+}