title: SQLSTATE[HY000]: General error: 1364 Field 'practice_name' doesn't have a default value
body: <p>I'm a beginner with Laravel (this project is version 5.4), but can't understand why this isn't working.  Here's my code setup:</p>
  
  <p>HTML Form (form method="post".  Action is to "/providers"):</p>
  
  <pre><code>&lt;div class="form-group"&gt;
  
  &lt;label for="practice_name"&gt;Name:&lt;/label&gt;
  &lt;input type="text" class="form-control" name="practice_name" id="practice_name"&gt;
  &lt;/div&gt;
  &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>Provider Model:</p>
  
  <pre><code>protected $fillable = ['provider_name'];
  </code></pre>
  
  <p>ProvidersController:</p>
  
  <pre><code>    public function store(Request $request)
  {
      Provider::create([
          'practice_name' =&gt; request('practice_name')
      ]);
      return redirect()-&gt;route('AllProviders');
  }
  </code></pre>
  
  <p>I've done a Dump and Die:</p>
  
  <pre><code>dd($request-&gt;all());
  </code></pre>
  
  <p>and this is what I get:</p>
  
  <pre><code>array:2 [
  _token" =&gt; "wcCHLBR9hJhH8JS7vSc3vUjyLnjvg0Wvn8oRUnAh"
  "practice_name" =&gt; "Test Provider"
  ]
  </code></pre>
  
  <p>My web routes look like this:</p>
  
  <pre><code>Route::get('/pricing', 'ProtectedPagesController@pricing');
  
  Route::get('/providers', 'ProvidersController@index')-&gt;name('AllProviders');
  Route::get('/providers/create', 'ProvidersController@create')-&gt;name('CreateProvider');
  Route::post('/providers', 'ProvidersController@store')-&gt;name('StoreProvider');
  Route::get('/providers/{provider}', 'ProvidersController@show');
  
  Route::get('/patients', 'PatientsController@index')-&gt;name('AllPatients');
  Route::get('/patients/{patient}', 'PatientsController@show');
  </code></pre>
  
  <p>So, my Dump and Die shows that my controller is getting the provider_name variable, yet when I execute the Create command, it's telling me that it doesn't see the value.  I am sure this is something simple, but after spending the last day and a half looking all over StackOverflow (and the rest of the web), I keep getting fixes that I've already tried.  The error that I'm getting is: </p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 1364 Field 'practice_name' doesn't have a default value (SQL: insert into <code>providers</code> (<code>updated_at</code>, <code>created_at</code>) values (2018-04-09 13:45:45, 2018-04-09 13:45:45))</p>
  </blockquote>
  
  <p>And I don't want to let that field be nullable in the database, because that field is mandatory.  There's no point to this controller if I make the database nullable - And furthermore, I don't see how that fixes the issue.  The form value still isn't being read into the Create function.</p>
  
  <p>Hoping someone can help me here.  Thanks!</p>