foreach in laravvel4 code example
Example 1: foreach in laravel
foreach ($users as $user) {
// stuff here
}
Example 2: foreach loop laravel
foreach($data as $key => $value)
{
dd($value);
}
foreach ($users as $user) {
// stuff here
}
foreach($data as $key => $value)
{
dd($value);
}