ソースを参照

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