Selaa lähdekoodia

Update avatar model

Daniel Supernault 4 vuotta sitten
vanhempi
commit
f7e72d7c62
1 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 13 1
      app/Avatar.php

+ 13 - 1
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);