any updated on this?
Jul 23, 2015
4
Level 4
Microseconds with Laravel's Timestamp
- PHP 5.6.10 check!
- MYSQL 5.6.19 check!
- LARAVEL 5.1.7 check!
Timestamps with precision FAIL
I know it has been asked before, but I have yet to see any one say it cannot be done. Can someone point me in the right direction please?
Thank you
Level 4
PHP 7.3 will fix a mysql/PDO bug that makes this harder than it should be. After the fix, you should just have to override the $dateFormat property on your models:
protected $dateFormat = 'Y-m-d H:i:s.u';
And add the precision in your migrations:
$table->timestamps(6);
The upcoming fix:
9 likes
Please or to participate in this conversation.