deleted event param use array instead of model

This commit is contained in:
xiaomlove
2025-05-16 22:01:12 +07:00
parent 45c41047da
commit 1381390c8c
8 changed files with 47 additions and 31 deletions

View File

@@ -16,6 +16,9 @@ class TorrentExtra extends NexusModel
{
return Attribute::make(
get: function ($value) {
if (is_null($value)) {
return null;
}
$jsonDecoded = json_decode($value, true);
if (is_array($jsonDecoded)) {
return $jsonDecoded;