@foreach($hosts as $host_id) @endforeach Create @dump($hosts_tasks)