title: Get checkbox status in livewire
body: <p>I have a form that has 2 checkboxes in this form. When I submit the information I want to test what the value of the first checkbox is. I use ‍‍‍‍‍‍`dd () but it shows me the value of Null. What is the problem? How can I solve this?</p>
  <p>this is view:</p>
  <pre><code>&lt;div class=&quot;form-group&quot;&gt;
      &lt;div class=&quot;custom-control custom-switch&quot;&gt;
          &lt;input class=&quot;custom-control-input&quot; id=&quot;deposit&quot; type=&quot;checkbox&quot;&gt; &lt;label class=&quot;custom-control-label&quot; for=&quot;deposit&quot;&gt;Deposit&lt;/label&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
      &lt;div class=&quot;form-group&quot;&gt;
          &lt;div class=&quot;custom-control custom-switch&quot;&gt;
              &lt;input class=&quot;custom-control-input&quot; id=&quot;withdraw&quot; type=&quot;checkbox&quot;&gt; &lt;label class=&quot;custom-control-label&quot; for=&quot;withdraw&quot;&gt;withdraw&lt;/label&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;button class=&quot;btn btn-round btn-outline-primary&quot;&gt;&lt;span class=&quot;w-100px&quot;&gt;create&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  <p>and this is component:</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Livewire\Backend\Currency;
  
  
  use Livewire\Component;
  
  class Networks extends Component
  {
      
      public $deposit;
      public $withdraw;
  
  
  
      public function addNetwork()
      {
          dd($this-&gt;deposit1);
      }
  
  
      public function render()
      {
          return view('livewire.backend.currency.networks');
      }
  }
  
  </code></pre>