ソースを参照

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;
     public $incrementing = false;
 
 
     protected $casts = [
     protected $casts = [
-        'story' => 'array',
+        'story' => 'json',
         'expires_at' => 'datetime',
         'expires_at' => 'datetime',
+        'view_count' => 'integer',
     ];
     ];
 
 
     protected $fillable = ['profile_id', 'view_count'];
     protected $fillable = ['profile_id', 'view_count'];