Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel current date in migration

$table->timestamp('name_custom')->default(DB::raw('CURRENT_TIMESTAMP'));
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #current #date #migration
ADD COMMENT
Topic
Name
4+6 =