groupBy not working with laravel query builder 

**My code here**

```
$driverData = \App\DriverProfile::select('*')
                ->leftjoin('qdm_drvr_contact', 'qdm_driver.Driver_id', '=', 'qdm_drvr_contact.Driver_id')
                ->leftjoin('qdm_contact_type', 'qdm_drvr_contact.Contact_type_id', '=', 'qdm_contact_type.id')
                ->where('qdm_driver.Driver_id', '=', "$sess_id" )
                 ->groupBy('qdm_driver.Driver_id')
                 ->get();

```