From 03420278679b9230cc5b515e70abf5bc76a98e42 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 4 Dec 2021 17:35:50 -0700 Subject: [PATCH] Update UserSetting model, cast compose_settings and other as json --- app/UserSetting.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/UserSetting.php b/app/UserSetting.php index a8c67739d..41e12dd84 100644 --- a/app/UserSetting.php +++ b/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' + ]; }