Browse Source

Update Avatar model

Daniel Supernault 6 years ago
parent
commit
8de42c7862
1 changed files with 5 additions and 0 deletions
  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);
+    }
 }