title: Not connecting form data to db correctly in a Laravel controller
body: <p>I have a form which takes in 3 values: <code>taste</code>, <code>name</code> and <code>description</code> of a dessert.</p>
  
  <pre><code>public function store(Request $request)
  {
      $cake = Desserts::create([
          'taste' =&gt; $request-&gt;input('Taste'),
          'name' =&gt; .. (same)
          'description' =&gt; ..
      ])-&gt;id; 
  }
  </code></pre>
  
  <p>In <code>$request-&gt;input('Taste')</code>, the 'Taste' refers to the <strong>NAME</strong> given to the entry field which the user uses to enter the taste details of the dessert. However, this syntax doesn't work (i.e. not updating to the db) and even though I do have values entered in the actual form, the error is that I get the following integrity constraint violation:</p>
  
  <pre><code>"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'taste' cannot be null
  </code></pre>
  
  <p>I don't quite understand why it is classified as null when I've clearly entered values in the entry field.</p>
  
  <p>Also, the reason why I have <code>-&gt;id</code> because I want to use the <code>$cake</code> variable through the ID associated with this dessert for something else so it has to be in this format</p>
  
  <p>Form example:</p>
  
  <pre><code>&lt;v-text-field
  v-model="thedessertitems"
  &gt;
  &lt;/v-text-field&gt;
  </code></pre>
  
  <p>Inside data:</p>
  
  <pre><code>thedessertitems: [
      {id:10, name:'Taste'}, 
      {id:11, name:'Name'},
      {id:12, name:'Description'}
  ]
  </code></pre>