1php artisan make:migration add_paid_to_users_table --table=users
2
3public function up()
4{
5 Schema::table('users', function($table) {
6 $table->integer('paid');
7 });
8}
9
10public function down()
11{
12 Schema::table('users', function($table) {
13 $table->dropColumn('paid');
14 });
15}
16
17php artisan migrate
1// for Laravel 5+
2php artisan make:migration add_email_to_users_table --table=users
3
4public function up()
5{
6 Schema::table('users', function($table) {
7 $table->integer('email');
8 });
9}
10
11public function down()
12{
13 Schema::table('users', function($table) {
14 $table->dropColumn('email');
15 });
16}
17
18php artisan migrate
1public function down()
2{
3 Schema::table('users', function($table) {
4 $table->dropColumn('paid');
5 });
6}
1public function up()
2{
3 Schema::table('users', function($table) {
4 $table->integer('paid');
5 });
6}