for each loop in javascript in laravel code example Example: foreach loop laravel foreach($data as $key => $value) { dd($value); }