how set field after another field in migration in laravel

Solutions on MaxInterview for how set field after another field in migration in laravel by the best coders in the world

showing results for - "how set field after another field in migration in laravel"
Mila
29 Feb 2018
1Schema::table('users', function($table)
2{
3    $table->string('phone_nr')->after('id');
4});
5
Filippo
03 Nov 2016
1php artisan make:migration add_store_id_to_users_table --table=users
2