Support the ongoing development of Laravel.io →
posted 7 years ago

Hii there,

I new in Laravel 5.6, i have problem :

 @foreach ($select as $rs)
     @foreach ($table_header as $row)
          {{ $rs->$row["name"] }}
     @endforeach
 @endforeach 

when i mix two variable, i have error "Array to string conversion", but code above is running well in Laravel 5.3. Anyone can help me?

Thank you for your feedbacks before

Best regards, Arif

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Arif.s arifsupriyadi Joined 18 Feb 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.