Explorar o código

更多 random

maa3606 %!s(int64=2) %!d(string=hai) anos
pai
achega
2325789b16
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);