From d7d1303a63197e8cb7a46a70a68048bbee1466a0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 12:38:09 -0700 Subject: [PATCH] Update Story Model --- app/Story.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Story.php b/app/Story.php index 9ac755c9..447ea3c8 100644 --- a/app/Story.php +++ b/app/Story.php @@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model; class Story extends Model { + protected $visible = ['id']; + + public function profile() + { + return $this->belongsTo(Profile::class); + } + public function items() { return $this->hasMany(StoryItem::class);