6
0
Fork 0
release
Jing Li 2022-06-02 11:05:12 +08:00
parent 76c99c66c7
commit 51eb230253
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class DrawLogController extends Controller
public function index($drawActivityId, Request $request) public function index($drawActivityId, Request $request)
{ {
$drawLogs = DrawLog::with(['userInfo', 'prize']) $drawLogs = DrawLog::with(['userInfo', 'prize'])
->whereDoesntHave('prize', fn ($builder) => $builder->where('type', DrawPrizeType::None))
->where('draw_activity_id', $drawActivityId) ->where('draw_activity_id', $drawActivityId)
->latest('id') ->latest('id')
->simplePaginate($request->input('per_page')); ->simplePaginate($request->input('per_page'));