dropColumn('name'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('roles', function (Blueprint $table) { $table->string('name')->index(); }); DB::table('roles')->update([ 'name' => DB::raw("lower(replace(`display_name`, ' ', '-'))"), ]); } }