瀏覽代碼

Update UserSetting model, cast compose_settings and other as json

Daniel Supernault 3 年之前
父節點
當前提交
0342027867
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      app/UserSetting.php

+ 6 - 1
app/UserSetting.php

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