Explorar o código

Add StoryView Model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
eb652bf339
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  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);
+	}
+}