Closed Chico3001 closed 3 years ago
Right now timestamps method wont allow the addition of useCurrent, to do so we need to add the columns in 2 steps:
$table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent();
it would be nice to have the option to do it in one step:
$table->timestamps()->useCurrent();
Given that you only need to write the migrations once. You can just split the call into two separate calls like in your example.
Right now timestamps method wont allow the addition of useCurrent, to do so we need to add the columns in 2 steps:
it would be nice to have the option to do it in one step:
$table->timestamps()->useCurrent();