$data = $res->with('book')
->withCount(['records as all','records as correct' => function ($query) {
$query->where('records.result', '1');
}])
->orderBy('created_at','desc')
->offset($offset)->limit($pageSize)
->get();
$data = $res->with('book')
->withCount(['records as all','records as correct' => function ($query) {
$query->where('records.result', '1');
}])
->orderBy('created_at','desc')
->offset($offset)->limit($pageSize)
->get();
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);