dimanche 1 juillet 2018

Loop through object within an array Laravel

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;
 }

and i get my response enter image description here

how can I access each tag_name?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire