1
0
Daniel Supernault 6 жил өмнө
parent
commit
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);
+    }
 }