소스 검색

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;
     public $incrementing = false;
     
     
-    protected $dates = ['deleted_at'];
+    protected $dates = [
+        'deleted_at',
+        'last_fetched_at'
+    ];
     protected $hidden = ['private_key'];
     protected $hidden = ['private_key'];
     protected $visible = ['id', 'user_id', 'username', 'name'];
     protected $visible = ['id', 'user_id', 'username', 'name'];
     protected $fillable = ['user_id'];
     protected $fillable = ['user_id'];