schema->getConnection(); $connection ->table('users_settings') ->update([ 'language' => $connection->raw('REPLACE(language, ".UTF-8", "")'), ]); } /** * Reverse the migration */ public function down(): void { $connection = $this->schema->getConnection(); $connection ->table('users_settings') ->update([ 'language' => $connection->raw('CONCAT(language, ".UTF-8")'), ]); } }