I would like to get your recommend.
// Solution one
$total_user=User::count();
$active_user=User::where('active', 'active')->count();
// Solution two
$user = User::all();
$total_user=$user->count();
$active_user=$user->where('active','active')->count();
Note : the number of users will become more then at least 1 million.
Thank all