title: CKEDITOR - Update / Create of products fails using AJAX in Laravel 5
body: <p>I want to store the html content written in ckeditor <code>textarea</code> field in my database table called <code>products</code> using AJAX.</p>
  
  <p>Everything gets inserted and/or updated successfully leaving the product description.</p>
  
  <p><strong>product_edit.blade.php</strong></p>
  
  <pre><code>{!! Form::open(['files' =&gt; 'true', 'autocomplete' =&gt; 'off', 'name' =&gt; 'formEditProductGeneralInfo', 'id' =&gt; 'formEditProductGeneralInfo']) !!}
      &lt;div class="form-group"&gt;
          {!! Form::label('code', 'Code:') !!}
          {!! Form::text('code', $product-&gt;code, ['class' =&gt; 'form-control input-sm']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::label('name', 'Name:') !!}
          {!! Form::text('name', $product-&gt;name, ['class' =&gt; 'form-control input-sm']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::label('description', 'Product Description:') !!}
          {!! Form::textarea('description', $product-&gt;description, ['class' =&gt; 'form-control input-sm ckeditor', 'rows' =&gt; 3, 'id' =&gt; 'prdDescription']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {!! Form::label('price', 'Price:') !!}
          {!! Form::text('price', $product-&gt;price, ['class' =&gt; 'form-control input-sm']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
         {!! Form::label('image_file', 'Image:') !!}
         {!! Form::file('image_file', ['id' =&gt; 'image_file', 'class' =&gt; 'form-control input-sm']) !!}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
         {!! Form::submit( 'Update', ['class' =&gt; 'btn btn-primary btn-block', 'id' =&gt; 'btnEditProductGeneral'] ) !!}
      &lt;/div&gt;
  {!! Form::close() !!}
  </code></pre>
  
  <p><strong>ajax</strong></p>
  
  <pre><code>$('form[name="formEditProductGeneralInfo"]').submit(function(e) {
      var inputData = new FormData($(this)[0]);
  
      var message = CKEDITOR.instances.prdDescription.getData();
  
      console.log(message);
      console.log(inputData);
  
      $.ajax({
          url: '{{ url(' / admin / products / update / general ', $product-&gt;id) }}',
          type: 'POST',
          data: inputData,
          async: true,
          success: function(m) {
              if (m.status === 'success') {
                  toastr.success(m.msg, 'Successs!');
              } else {
                  toastr.error(m.msg, msg.status);
              }
          },
          error: function(data) {
              if (data.status === 422) {
                  var errors = data.responseJSON;
                  var errorsHtml = '&lt;div class="alert alert-danger"&gt;&lt;ul&gt;';
                  errorsHtml += '&lt;button type="button" class="close" data-dismiss="alert" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;';
                  $.each(errors, function(key, value) {
                      errorsHtml += '&lt;li&gt;' + value[0] + '&lt;/li&gt;';
                  });
                  errorsHtml += '&lt;/ul&gt;&lt;/div&gt;';
                  $('.errors').html(errorsHtml);
              }
          },
          cache: false,
          contentType: false,
          processData: false
      });
      e.preventDefault();
      return false;
  });
  </code></pre>
  
  <p>How am I suppose to save the <code>description</code>'s html content in the database ?</p>
  
  <p>Any help is highly appreciated. Thanks.</p>