Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how set field after another field in migration in laravel

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #field #field #migration #laravel
ADD COMMENT
Topic
Name
9+7 =