laravel default timestamp now code example
Example 1: created_at default value laravel
$table->timestamp('created_at')->useCurrent();
Example 2: laravel current timestamp
use Carbon\Carbon;
$current_date_time = Carbon::now()->toDateTimeString(); // Produces something like "2019-03-11 12:25:00"
Example 3: current time in laravel migration
$table->timestamp('column_name')->useCurrent();