$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?
My mistake ,
Declare variable name,
$rows = "";
It's works.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community