From fc3111cf5c30d71bae46579e2563004416349265 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Dec 2019 14:18:46 +0100 Subject: [PATCH] datetime is jsonserializable, didn't know that :) --- Models/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Tag.php b/Models/Tag.php index 31f5593..7080ea3 100644 --- a/Models/Tag.php +++ b/Models/Tag.php @@ -186,7 +186,7 @@ class Tag implements ArrayableInterface, \JsonSerializable public function toArray() : array { return [ - 'id' => $this->id, + 'id' => $this->id, 'title' => $this->title, 'color' => $this->color, ];