add column in laravel migration
snippet in php

laravel migration add column to existing table

user3790

php artisan make:migration add_paid_to_users_table --table=users
  
public function up()
{
    Schema::table('users', function($table) {
        $table->integer('paid');
    });
}

public function down()
{
    Schema::table('users', function($table) {
        $table->dropColumn('paid');
    });
}

php artisan migrate

add column to migration laravel

user9887

class AddProfileToUsers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->string('profile')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('shop_users', function (Blueprint $table) {
            $table->dropColumn(['profile']);
        });
    }
}

add column in laravel migration

user3236

php artisan make:migration add_paid_to_users_table --table=users

add new column in laravel migration

user4126

Schema::table('table_name', function (Blueprint $table) {
            $table->string('column_name', 255)->nullable()->after('previous_column_name');
        });

add column to migration laravel

user8257

php artisan make:migration add_profile_to_users

laravel create migration

user4321

php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users