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  CSS code snippet - How do i remove highlighting?

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.