-
1
Melt the butter in a large nonstick frying pan over medium heat until foaming.
-
2
Add the onions and cook, stirring rarely, until deep golden brown and caramelized, about 40 minutes.
-
3
Season generously with salt and pepper, stir to combine, and transfer to a medium bowl; set aside.
-
4
Wipe out the pan with paper towels and set aside.
-
5
While the onions are cooking, place the meat in a large bowl and add the measured salt and pepper.
-
6
Mix with your hands until just evenly combined.
-
7
Divide into 4 equal portions and place on a baking sheet.
-
8
Using your fingertips, press each portion into a 1/4-inch-thick patty that is slightly wider in diameter than the slices of bread.
-
9
Heat a separate large frying pan (not the nonstick pan) over medium-high heat until a drop of water sizzles and immediately disappears on the surface.
-
10
Place 2 of the patties in the pan and cook undisturbed until browned on the bottom, about 2 to 3 minutes.
-
11
Flip and cook until the patties are just slightly pink in the center for medium, about 2 to 3 minutes more.
-
12
Transfer the patties to a large plate and tent loosely with aluminum foil.
-
13
Repeat with the remaining 2 patties; set aside.
-
14
On 1 side of each bread slice, spread about 1 heaping teaspoon of the mayonnaise in an even layer and all the way to the edges.
-
15
Place 4 of the bread slices on a work surface mayonnaise-side down, and set the other 4 slices aside.
-
16
Distribute half of the cheese among the 4 bread slices and divide the cooked onions evenly over the cheese, arranging the onions in an even layer.
-
17
Top with the beef patties, divide the remaining cheese over the patties, and place the remaining 4 slices of bread on top mayonnaise-side up.
-
18
Heat the reserved nonstick pan over medium heat until a drop of water sizzles and immediately disappears on the surface, about 3 minutes.
-
19
Place 2 of the sandwiches in the pan and cook until the bottom slices of cheese start to melt and the bread is golden brown, about 3 to 4 minutes.
-
20
Flip and cook until the other side is golden brown and all of the cheese has melted, about 3 to 4 minutes more.
-
21
Remove to a serving plate and repeat with the remaining 2 patty melts.
-
22
Serve immediately.