where('usersf', 'LIKE', '%.GIF') ->update(['usersf' => DB::raw("REPLACE(usersf, '.GIF', '.gif')")]); } /** * 回滚:将 .gif 转回 .GIF */ public function down(): void { DB::table('users') ->where('usersf', 'LIKE', '%.gif') ->update(['usersf' => DB::raw("REPLACE(usersf, '.gif', '.GIF')")]); } };