The following query will result in 100 rows :
$qtop = Quest::where('ttype',$id)
->where('country', $ucountry )
->where('score', '>' , 240 )
->orderby('score', 'desc')
// ->take(25)
->get();
Instead of using ->take(25)
how can I take 25% of the total rows ?