How can I output the rows and values of a table field using the element api plugin?
Where I have entries I do
...
$industries = [];
foreach ($entry->industries->all() as $industry) {
$industries[] = $industry->title;
}
...
return [
'industries' => $industries
];
but ->all()
doesn't work in the scenario of a table.