title: SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value
body: <p>I am using <strong>mysql v5.7</strong> and <strong>laravel 5.5</strong>. When I try to "add product" the following error occurs.</p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a
    default value</p>
  </blockquote>
  
  <p>My <strong>products</strong> table</p>
  
  <pre><code> public function up()
      {
          Schema::create('products', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('name');
              $table-&gt;string('description');
              $table-&gt;string('size');
              $table-&gt;string('price');
              $table-&gt;string('image');
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  
  <p>My <strong>ProductController</strong> with <strong>store</strong> method</p>
  
  <pre><code>public function store(Request $request)
  {
      //validation
      $this-&gt;validate($request,[
          'name'=&gt; 'required',
          'description'=&gt;'required',
          'size'=&gt;'required',
          'price'=&gt;'required',
          'image'=&gt;'image|mimes:png,jpg,jpeg|max:10000'
      ]);
  
      //image upload
      $image=$request-&gt;image;
      if($image){
          $imageName=$image-&gt;getClientOriginalName();
          $image-&gt;move('images',$imageName);
          $formInput['image']=$imageName;
      }
  
      Product::create($formInput);
      return redirect()-&gt;route('product.index');
  }
  </code></pre>
  
  <p>When I add <code>-&gt;nullable</code> method to the field, there is no error but the data in table is null.</p>
  
  <p>Please help me...</p>