Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel migration change column name

Schema::table('users', function (Blueprint $table) {
    $table->renameColumn('from', 'to');
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #migration #change #column
ADD COMMENT
Topic
Name
8+9 =