title: Laravel update multiple records by using checkbox
body: <p>I have checkbox for all customers in blade.And i want to when i click  here i change status.Now when i click checkbox it do all records status to 0 and new clicked statuses to 1.All old datas to 0.I dont want this.How i fix it.
  It is controller sider</p>
  <pre><code>  $clients = Client::all();
        foreach ($clients as $client)
        {
            $client-&gt;is_slide_content = $request-&gt;has('is_slide_content.' .$client-&gt;id)? 1:0;
            $client-&gt;save();
        }
  </code></pre>
  <pre><code>
                                                  &lt;td&gt;
                                                      &lt;input type=&quot;checkbox&quot; name=&quot;is_slide_content[{{ $cs-&gt;id }}]&quot; class=&quot;checkbox&quot;&gt;
                                                      &lt;label&gt;{{trans('back.add')}}&lt;/label&gt;
  
                                                  &lt;/td&gt;
  </code></pre>