I have a vue template and I'm trying to access the pets array.
This is my code
foreach ($request->pets as $pet) {
$pet = $client->pets()->find($pet)->first();
$pet->name = request('pets[].name');
$pet->update();
}
If I hardcode a name, it updates. How do I access pet objects?
