Answers for "eloquent migration above column"

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 "eloquent migration above column"

Browse Popular Code Answers by Language