以下查询将产生 100 行:
$qtop = Quest::where('ttype',$id)
->where('country', $ucountry )
->where('score', '>' , 240 )
->orderby('score', 'desc')
// ->take(25)
->get();而不是使用->take(25)我怎样才能占总行数的 25%?
尚方宝剑之说
慕田峪7331174