Browse Source

Update UserSetting model, cast compose_settings and other as json

Daniel Supernault 3 years ago
parent
commit
0342027867
1 changed files with 6 additions and 1 deletions
  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'
+	];
 }