From c7bea4f0241b2d424041eb767c93d999bbd94802 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 16 Jun 2024 12:30:42 -0400 Subject: [PATCH] This was wrong but somehow worked in sqlite, wut --- app/Casts/EndpointCollection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Casts/EndpointCollection.php b/app/Casts/EndpointCollection.php index 7fca4a1ce..f4a1e21ca 100644 --- a/app/Casts/EndpointCollection.php +++ b/app/Casts/EndpointCollection.php @@ -36,7 +36,9 @@ class EndpointCollection implements Castable $value = new Collection($value); } - return $value->map(fn ($endpoint) => (string) $endpoint); + return [ + 'ports' => $value->toJson(), + ]; } }; }