浏览代码

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'];