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

+ 5 - 0
app/Avatar.php

@@ -15,4 +15,9 @@ class Avatar extends Model
      * @var array
      */
     protected $dates = ['deleted_at'];
+
+    public function profile()
+    {
+    	return $this->belongsTo(Profile::class);
+    }
 }