Quick tip of the day, how to add default datetime to migration.
$table->timestamp('some_date_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Need a website, web app or API?
Quick tip of the day, how to add default datetime to migration.
$table->timestamp('some_date_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Copyright © 2023 Full Stack Programmer