Snippets

Laravel add column in migration file after in any specific column

To add a new column in laravel migration file after in any specific column, follow this step.

$table->string('new_adding_column_name')->nullable()->after('after_which_column_name_you_want_to_see_the_new_column');

Thanks.