Answers for "how to add another field to laravel migration"

PHP
1

how set field after another field in migration in laravel

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});
Posted by: Guest on August-04-2021
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 "how to add another field to laravel migration"

Browse Popular Code Answers by Language