You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to format the date properties on my models to conform to ISO 8601 by using the $dateFormat property on the model classes. When I override this property in the models, I get a "bad request" error on all requests
{
"errors": [
{
"status": 400,
"title": "Bad Request",
"detail": "Request could not be served."
}
]
}
Is modifying this property the best way to get ISO 8601? And how do I track down the actual issue here? There isn't anything in storage/logs/laravel.log. Is there a seperate log?
Thanks
The text was updated successfully, but these errors were encountered:
I had an issue that may be related to this. I have to specify custom timestamps in my model. After a bit of digging I found where the UPDATED_AT field was being set in the JsonApiTrait.php I changed the line that sets the updated_at property in both put/patch ops to:
I'm trying to format the date properties on my models to conform to ISO 8601 by using the $dateFormat property on the model classes. When I override this property in the models, I get a "bad request" error on all requests
Is modifying this property the best way to get ISO 8601? And how do I track down the actual issue here? There isn't anything in storage/logs/laravel.log. Is there a seperate log?
Thanks
The text was updated successfully, but these errors were encountered: