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  How to split a string into a list of characters in Python?

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.