Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel date default now

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