Answers for "add after in migration laravel"

PHP
4

laravel migration add column after

Schema::table('users', function ($table) {
    $table->string('email')->after('id')->nullable();
});
Posted by: Guest on December-11-2020
0

how add field to table by another migration in laravel

php artisan make:migration add_store_id_to_users_table --table=users
Posted by: Guest on August-04-2021

Code answers related to "add after in migration laravel"

Browse Popular Code Answers by Language