add datetime column in migration laravel code example
Example 1: laravel migration add column after
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});
Example 2: laravel migration add datetime column with default
$table->timestamp('column_name')->useCurrent();