1Schema::table('users', function (Blueprint $table) {
2 $table->renameColumn('from', 'to');
3});
1public function up()
2{
3 Schema::table('table', function($table) {
4 $table->dropColumn('column_name');
5 });
6}
1php artisan make:migration add_votes_to_users_table --table=users
2
3php artisan make:migration create_users_table --create=users
1public function down()
2{
3 Schema::table('posts', function (Blueprint $table) {
4 $table->renameColumn('user_id', 'author_ID');
5 });
6}
7