title: Check only one checkbox and uncheck others using livewire
body: <p>I'm trying to check only one checkbox at a time and others uncheck, but when I want to check a new checkbox then the previous will uncheck, and so on.</p>
  <p>my code in blade:</p>
  <pre><code>@foreach($addressEmployer as $address)
                              &lt;div class=&quot;col-12 col-lg-3 p-2 m-2 rounded&quot; style=&quot;border: dashed #a1a1a1;&quot;&gt;
                                  &lt;label for=&quot;check{{$address-&gt;id}}&quot;&gt;&lt;/label&gt;
                                  &lt;div class=&quot;row&quot;&gt;
                                      &lt;div class=&quot;col-2 mt-5&quot;&gt;
                                          &lt;input wire:model=&quot;addressSelected.{{$address-&gt;id}}&quot;
                                                 value=&quot;{{$address-&gt;id}}&quot;
                                                 class=&quot;form-check-input&quot; type=&quot;checkbox&quot;
                                                 id=&quot;check{{$address-&gt;id}}&quot;&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;col-10&quot;&gt;
                                          &lt;p&gt; {{$address-&gt;province-&gt;name}} - {{$address-&gt;city-&gt;name}}&lt;/p&gt;
                                          &lt;p&gt; {{$address-&gt;address}}&lt;/p&gt;
                                          &lt;a wire:click=&quot;setAddress({{$address-&gt;id}})&quot; class=&quot;float-end&quot;
                                             data-bs-toggle=&quot;modal&quot;
                                             href=&quot;#editAddressModal&quot;
                                             role=&quot;button&quot;&gt;{{__('Edit')}}&lt;/a&gt;
                                          &lt;a wire:click=&quot;$emit('addressId',{{$address-&gt;id}})&quot; class=&quot; me-3 float-end&quot;
                                             data-bs-toggle=&quot;modal&quot;
                                             href=&quot;#deleteAddressModal&quot;
                                             role=&quot;button&quot;&gt;{{__('Delete')}}&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          @endforeach
  </code></pre>
  <p>I read the addresses from the database and display them with foreach and I want to select one of the displayed addresses.</p>
  <p><strong>I am looking for the right solution to this issue. Thanks if you have a solution.</strong></p>