title: Form::checkbox on Laravel 5
body: <p>I just started learning laravel and I have the following situation:</p>
  
  <p>I have a table which is called 'cities' and a table 'users'. To connect them I have a table users_cities.</p>
  
  <p>I am trying to do a form using laravel</p>
  
  <pre><code>@extends('welcome')
  
  @section('content')
  
      &lt;h1&gt;Cities&lt;/h1&gt;
  
      @foreach ($cities as $city)
  
      {!! Form::checkbox($city-&gt;name, $city-&gt;id, null, ['class' =&gt; 'field']) !!}{!! $city-&gt;name !!}
  
      @endforeach
  
      @foreach ($citiesSelect as $citySelect)
  
      {!! $citySelect-&gt;id !!}
  
      @endforeach 
  
  @stop
  </code></pre>
  
  <p>And it`s bringing the name of the cities on the first foreach, and on the second is bringing the ids of the cities that should be checked.</p>
  
  <p>Basically is bringing the entries on the database which has the id_user selected.</p>
  
  <p>But I can't figure out how to bring the checkboxes on the first foreach selected using the result of the second foreach.</p>