Преглед изворни кода

Update Profile model, cast timestamp for last_fetched_at

Daniel Supernault пре 5 година
родитељ
комит
6969bb5bb4
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      app/Profile.php

+ 4 - 1
app/Profile.php

@@ -18,7 +18,10 @@ class Profile extends Model
      */
     public $incrementing = false;
     
-    protected $dates = ['deleted_at'];
+    protected $dates = [
+        'deleted_at',
+        'last_fetched_at'
+    ];
     protected $hidden = ['private_key'];
     protected $visible = ['id', 'user_id', 'username', 'name'];
     protected $fillable = ['user_id'];