Created
October 14, 2014 03:00
-
-
Save vuhung3990/0ba33d471f68fd19400c to your computer and use it in GitHub Desktop.
Laravel default timestamp issui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); | |
$table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment