소스 검색

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'
+	];
 }