From 8de42c786202fe021148dc046d44cf0eafabc220 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 12 Feb 2019 00:38:29 -0700 Subject: [PATCH] Update Avatar model --- app/Avatar.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Avatar.php b/app/Avatar.php index b7251076..76ca442b 100644 --- a/app/Avatar.php +++ b/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); + } }