id, $row->name, $row->code, $row->no_of_folders, $row->user_id . ' - ' . User::find($row->user_id)->username, $row->created_at, $row->updated_at ]; return $fields; } public function headings(): array { return [ 'ID', 'Name', 'Code', 'Number of folders', 'Created by ID - Username', 'Created at', 'Updated at', ]; } }