title: Inserting data from <option> to Database in Laravel
body: <p>Trying to insert a data using Option form in CRUD app. but its says </p>
  
  <blockquote>
    <p>SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'site_category' cannot be null (SQL: insert into <code>company</code> (<code>site_category</code>, <code>category_rest</code>, <code>user_id</code>, <code>updated_at</code>, <code>created_at</code>) values ( , , 1, 2017-09-01 08:30:09, 2017-09-01 08:30:09))</p>
  </blockquote>
  
  <p>View</p>
  
  <pre><code>                      {!! Form::open(['action' =&gt; 'CompanyController@store', 'method' =&gt; 'POST']) !!}
                          &lt;div class="form-group"&gt;
                              &lt;label for="siteCategory"&gt;Choose your website category&lt;/label&gt;&lt;br&gt;
                              &lt;select class="custom-select" id="siteCategory"&gt;
                                    &lt;option name="test1" value="test1"&gt;Option 1&lt;/option&gt;
                                    &lt;option name="test2" value="test2"&gt;Option 2&lt;/option&gt;
                                    &lt;option name="test3" value="test3"&gt;Option 3&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                           &lt;div class="form-group"&gt;
                              &lt;label for="restrictCategory"&gt;Choose your website categories restrictions&lt;/label&gt;&lt;br&gt;
                              &lt;select class="custom-select" id="restrictCategory" multiple&gt;
                                    &lt;option name="test4" value="test4"&gt;Option 1&lt;/option&gt;
                                    &lt;option name="test5" value="test5"&gt;Option 2&lt;/option&gt;
                                    &lt;option name="test6" value="test6"&gt;Option 3&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                          &lt;button type="submit" class="btn btn-primary"&gt;Add Company&lt;/button&gt;
                      {!! Form::close() !!} 
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function store(Request $request)
  {
      $company = new Company;
      $company-&gt;site_category = $request-&gt;input('test1');
      $company-&gt;site_category = $request-&gt;input('test2');
      $company-&gt;site_category = $request-&gt;input('test3');
      $company-&gt;category_rest= $request-&gt;input('test4');
      $company-&gt;category_rest= $request-&gt;input('test5');
      $company-&gt;category_rest= $request-&gt;input('test6');
      $company-&gt;user_id = auth()-&gt;user()-&gt;id; //sync with user
      $company-&gt;save();
  
      return redirect('/dashboard/company');
  }
  </code></pre>
  
  <p>I guess something wrong in my action controller, but what?</p>