←Back

[How To Add A New Column To An Existing Table In Laravel?](https://www.uptimia.com/questions/how-to-add-a-new-column-to-an-existing-table-in-laravel#:~:text=a New Migration-,To add a new column to an existing table in,helps you generate this file.&text=Replace "column_name" with your new,table you want to change.)

php artisan make:migration add_column_name_to_table_name --table=table_name

Replace "column_name" with your new column's name and "table_name" with the name of the table you want to change.

Place new column after another (with a default, especially if you already have a seeder)

$table->integer('paid')->after('email')->default('1');

Run the migration:

php artisan migrate --path=/database/migrations/yyyy_mm_dd_hhmmss_add_column_name_to_table_name.php

When re-running a migration and getting ‘nothing to migrate’, run (with your own relative table path);

php artisan migrate:rollback --path=/database/migrations/2025_04_17_183023_add_shares_to_mixes.php