title: SQLSTATE[HY000]: General error: 1364 Field 'description' doesn't have a default value (SQL: insert into `projects` (...)
body: <p>I got an error: </p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 1364 Field 'description' doesn't have
    a default value (SQL: insert into <code>projects</code> (<code>title</code>, <code>updated_at</code>,
    <code>created_at</code>) values (projet 5, 2019-03-01 22:13:19, 2019-03-01
    22:13:19))</p>
  </blockquote>
  
  <p>class <strong>ProjectController.php</strong> </p>
  
  <pre><code>public function create()
  {
     return view('projects.create');
  }
  public function store()
  {
     //dd(request()-&gt;all());
     Project::create(request(['title','description']));
     return redirect('/projects');
  }
  </code></pre>
  
  <p>class <strong>Project.php</strong></p>
  
  <pre><code>class Project extends Model
  {
    protected $fillable=[
       'title','description'
     ];
  }
  </code></pre>
  
  <p><strong>web.php</strong> </p>
  
  <pre><code>Route::resource('projects','ProjectsController');
  </code></pre>
  
  <p>I can't insert a project and I check my fields in phpMyadmin and everything is ok.</p>