Selaa lähdekoodia

Update Profile model, cast timestamp for last_fetched_at

Daniel Supernault 5 vuotta sitten
vanhempi
commit
6969bb5bb4
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  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'];