title: not getting checkbox element value from form
body: <p>I have a small form in Laravel 5.4 which has a checkbox and a text box. The issue is that when I post the form, the checkbox value is not coming through the request. I have custom styling on the checkbox but surely it can't be that?</p>
  
  <p>I've been looking at this for a while, and everything looks normal. My code is below:</p>
  
  <pre><code>&lt;form method="post" action="{{ route('admin.settings.save') }}"&gt;
      {{ csrf_field() }}
      &lt;div class="row"&gt;
          &lt;div class="col-md-6"&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;&lt;b&gt;Site Name&lt;/b&gt;&lt;/label&gt;
                  &lt;p&gt;This is the name of your LaravelFileManager instance.&lt;/p&gt;
                  &lt;input name="siteName" id="siteName" class="form-control" value="{{ \App\Helpers\ConfigHelper::getValue('site_name') }}" /&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;
                  &lt;label&gt;&lt;b&gt;Footer Message&lt;/b&gt;&lt;/label&gt;
                  &lt;p&gt;You can customise the footer message for the application.&lt;/p&gt;
                  &lt;div class="checkbox"&gt;
                      &lt;label&gt;
                          &lt;input type="checkbox" name="showFooter" id="showFooter" checked="{{ \App\Helpers\ConfigHelper::getValue('show_footer_message') }}"&gt; Show footer message
                      &lt;/label&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;button type="submit" class="btn btn-success"&gt;&lt;i class="fa fa-save"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Save Changes&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My controller code is as such:</p>
  
  <pre><code>public function saveSettings(Request $request) {
      $siteName = $request-&gt;input('siteName');
      $showFooter = $request-&gt;input('showFooter');
  
      ConfigHelper::setValue('site_name', $siteName);
      ConfigHelper::setValue('show_footer_message', $showFooter);
  
      return redirect()-&gt;route('admin.settings')-&gt;with('result', 'Settings saved.');
  }
  </code></pre>
  
  <p>My route:</p>
  
  <pre><code>Route::post('settings/save', ['uses' =&gt; 'Admin\SettingsController@saveSettings'])-&gt;name('admin.settings.save');
  </code></pre>
  
  <p>I've also done a vardump on the $request variable and even that is missing the check box value:</p>
  
  <pre><code>array(2) { 
      ["_token"]=&gt; string(40) "sgyO7Kkz1ljsYEZ1G5nkj4uVbmFZqiTMbpK9P6Bi" 
      ["siteName"]=&gt; string(16) "File Manager 1.0" 
  }
  </code></pre>
  
  <p>It's missing the 'showFooter' variable.</p>
  
  <p>Not quite sure where to go with this one. Any help appreciated.</p>