浏览代码

Update Story model

Daniel Supernault 3 周之前
父节点
当前提交
fefbbee83f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Story.php

+ 2 - 1
app/Story.php

@@ -21,8 +21,9 @@ class Story extends Model
     public $incrementing = false;
 
     protected $casts = [
-        'story' => 'array',
+        'story' => 'json',
         'expires_at' => 'datetime',
+        'view_count' => 'integer',
     ];
 
     protected $fillable = ['profile_id', 'view_count'];