Skip to content

PHP code snippet – How set field after another field in migration in laravel?

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});
See also  PHP code snippet - How to change existing migration laravel?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.