Answers for "rename column in laravel with bind"

PHP
1

migration rename column laravel

public function up()
{
    Schema::table('posts', function (Blueprint $table) {
        $table->renameColumn('author_ID', 'user_id');
    });
}
Posted by: Guest on February-09-2021

Code answers related to "rename column in laravel with bind"

Browse Popular Code Answers by Language