framework
framework copied to clipboard
Defining Eloquent freshTimestamp() results in fromDateTime()
If you have defined freshTimestamp() to return anything but a DateTime instance, when you update a record setAttribute() is called which process the value through fromDateTime(DateTime).
This throws an error since the parameter types mismatch. :-(
Any suggestions other than to override setAttribute() or fromDateTime()?
I recently made some changes that might address this. Can you update your framework and give it a shot?
Recently as in this morning.
Thanks, it works now.