i had similar issue with mssql database, you are correct about it being an issue with dates. You need to look at accesors and mutators to resolve this
Oct 15, 2014
2
Level 4
Collection::jsonSerialize() fails on Carbon date made from Postgresql timestamp
In short, using json_encode (Response::json()) on any model that contains timestamps when using Postgre returns a "Failed calling Illuminate\Database\Eloquent\Collection::jsonSerialize()" error.
In other words, dates like "2014-10-15 20:19:21.683" just kill Carbon.
The temporary solution is disabling date mutators by returning an empty array in getDates().
Did any of you ever experienced this?
Please or to participate in this conversation.