I'm trying to loop through an object in an array in Laravel.
I made a foreach
to loop through my $request->newTags
what is an object and I just return the key. my goal is to access each tag_name
in my request object
what has an array
with the multiple indexes what contain the tag_name
.
foreach ($request->newTags as $tag) {
return $tag;
}
how can I access each tag_name?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire