From f7e72d7c622d7d50f3fbec1eb67c3b43780a1936 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 25 Jan 2021 21:30:37 -0700 Subject: [PATCH] Update avatar model --- app/Avatar.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Avatar.php b/app/Avatar.php index 1033935b..0dde3841 100644 --- a/app/Avatar.php +++ b/app/Avatar.php @@ -14,9 +14,21 @@ class Avatar extends Model * * @var array */ - protected $dates = ['deleted_at']; + protected $dates = [ + 'deleted_at', + 'last_fetched_at', + 'last_processed_at' + ]; + protected $fillable = ['profile_id']; + protected $visible = [ + 'id', + 'profile_id', + 'media_path', + 'size', + ]; + public function profile() { return $this->belongsTo(Profile::class);