Browse Source

Update UserSetting model, cast compose_settings and other as json

Daniel Supernault 3 năm trước cách đây
mục cha
commit
0342027867
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      app/UserSetting.php

+ 6 - 1
app/UserSetting.php

@@ -6,5 +6,10 @@ use Illuminate\Database\Eloquent\Model;
 
 
 class UserSetting extends Model
 class UserSetting extends Model
 {
 {
-    protected $fillable = ['user_id'];
+	protected $fillable = ['user_id'];
+
+	protected $casts = [
+		'compose_settings' => 'json',
+		'other' => 'json'
+	];
 }
 }