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