title: Saving/Updating User Profile in Laravel 5
body: <p>I can't seem to save the updated profile to the database.</p>
  
  <p>In my edit.blade.php:</p>
  
  <pre><code>{!! Form::model($user, ['method' =&gt; 'PATCH', 'route' =&gt; ['profile.update', $user-&gt;company_name] ]) !!}
  
     // fields
  
    {!! Form::submit('Update Profile', ['class' =&gt; 'btn btn-primary']) !!}
  
  {!! Form::close() !!}
  </code></pre>
  
  <p>In my ProfilesController:</p>
  
  <pre><code>public function update($company_name)
  
  {
    $user = User::whereCompanyName($company_name)-&gt;firstOrFail();
    $user-&gt;save(); // no validation implemented
    flash('You have successfully edited your profile');
    return redirect('/');
  
  }
  </code></pre>
  
  <p>After hitting the update button, it shows the flash message on the homepage but the it's not saving to the database. Im coming from Rails and I feel I need to whitelist something.</p>