Daniel Supernault пре 6 година
родитељ
комит
d7d1303a63
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      app/Story.php

+ 7 - 0
app/Story.php

@@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model;
 
 
 class Story extends Model
 class Story extends Model
 {
 {
+	protected $visible = ['id'];
+	
+	public function profile()
+	{
+		return $this->belongsTo(Profile::class);
+	}
+
 	public function items()
 	public function items()
 	{
 	{
 		return $this->hasMany(StoryItem::class);
 		return $this->hasMany(StoryItem::class);