Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel migration add column after

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