1
0
Daniel Supernault 3 долоо хоног өмнө
parent
commit
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'];