maa3606 2 éve
szülő
commit
2325789b16
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      app/Http/Controllers/DrawController.php

+ 1 - 0
app/Http/Controllers/DrawController.php

@@ -27,6 +27,7 @@ class DrawController extends Controller
             ->where('is_checked_in', 'true')
             ->whereTime('check_ins.updated_at', '<=', $activity->deadline)
             ->whereIn('region', $request->region)
+            ->inRandomOrder()
             ->get()
             ->random($request->number);