Hello,
To create both of the created_at and updated_at columns:
$t->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$t->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update ...READ MORE
Apr 2, 2020
in Laravel
by
Niroj
• 82,840 points
•
12,110 views