diff --git a/app/Models/Blacklist.php b/app/Models/Blacklist.php index f5b9f5e..d07e29a 100644 --- a/app/Models/Blacklist.php +++ b/app/Models/Blacklist.php @@ -7,6 +7,10 @@ class Blacklist extends SoftDeletesModel protected $appends = ['file_detail']; + protected $casts = [ + 'file'=>'array' + ]; + public function getFileDetailAttribute() { if (empty($this->file)) {