Browse Source

Update Story model

Daniel Supernault 3 weeks ago
parent
commit
fefbbee83f
1 changed files with 2 additions and 1 deletions
  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'];