This my query :
$taskdetails = Tasks::join(\'company\', \'company.id\', \'=\', \'tasks.company_id\')->join(\'regulatory_grouping\', \'regulatory_grouping.id\',