Explorar o código

Update Avatar model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
8de42c7862
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Avatar.php

+ 5 - 0
app/Avatar.php

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