Support the ongoing development of Laravel.io →
Views Blade Forms
Last updated 1 year ago.
0
  $rows .= '<tr>'

  . '<td>'.$user['first_name'].' '.$user['last_name'].'</td>'

  . '</tr>';

Notice the tiny change from "$rows =" to "$rows .="

Why are you concatenating HTML into a variable, just put the foreach loop inside the template?

0

My mistake ,

Declare variable name,

$rows = "";

It's works.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.