Ver Fonte

Update Avatar model

Daniel Supernault há 6 anos atrás
pai
commit
8de42c7862
1 ficheiros alterados com 5 adições e 0 exclusões
  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);
+    }
 }