maa3606 2 лет назад
Родитель
Сommit
2325789b16
1 измененных файлов с 1 добавлено и 0 удалено
  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);