Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql timestamp in laravel migration

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #timestamp #laravel #migration
ADD COMMENT
Topic
Name
2+3 =