Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel default date set

// these may not work with early versions of laravel
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #default #date #set
ADD COMMENT
Topic
Name
2+3 =