mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
deleted event param use array instead of model
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user