Solution:
It will work:
$pendingRequests = \App\Applicant::with(['approved_applicants' => function($query) { $query->groupBy('user_id'); }])->where('company_name',auth() ->user()->company_name)->get();