diff --git a/app/Classes/Modules/Exports/Services/ExportsCustomers.php b/app/Classes/Modules/Exports/Services/ExportsCustomers.php index 00d99b20..ba3fd66a 100644 --- a/app/Classes/Modules/Exports/Services/ExportsCustomers.php +++ b/app/Classes/Modules/Exports/Services/ExportsCustomers.php @@ -47,7 +47,7 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping return [ $company->reference, $company->name, - $company->employees->first()->name, + $company->employees()->first()->name, $company->contacts()->first()->phone, $company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual', count($company->bookings),