diff --git a/src/Models/Casts/TrustPath.php b/src/Models/Casts/TrustPath.php index c3b3896..cf2862c 100644 --- a/src/Models/Casts/TrustPath.php +++ b/src/Models/Casts/TrustPath.php @@ -19,7 +19,7 @@ class TrustPath implements CastsAttributes */ public function get($model, string $key, $value, array $attributes): ?TrustPathLib { - return $value !== null ? app(SerializerInterface::class)->deserialize($value, TrustPath::class, 'json') : null; + return $value !== null ? app(SerializerInterface::class)->deserialize($value, TrustPathLib::class, 'json') : null; } /**