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);