skip to Main Content

Increase variable in column name Laravel

I have those columns in my database table : value_day_1 | value_day_2| value_day_3 |......|value_day_36 I'm trying to display each value in a view using a for loop @for ($n=1;$n<37;n++) {{ $day->value_day_? }} @endfor How can i replace the ? by…

VIEW QUESTION
Back To Top
Search