Browse Source

Update Story model

Daniel Supernault 3 tuần trước cách đây
mục cha
commit
fefbbee83f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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'];