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
1public function down()
2{
3 Schema::table('users', function($table) {
4 $table->dropColumn('paid');
5 });
6}
1Schema::table('users', function($table) {
2 $table->string("title");
3 $table->text("description");
4 $table->timestamps();
5});