title: Laravel: Update on same page not working
body: <p>So im quite new to Laravel and im trying to update a specific database entry with an update function. I used this function before and it always worked fine but not this time and I can't figure out what the problem is. </p>
  
  <p>I guess it has something to do with that fact that im trying to update an entry on the same page? 
  Here is my Code: </p>
  
  <p>Controller: </p>
  
  <pre><code>public function update(Request $request, Player $player)
  {
      request()-&gt;validate([
          'points' =&gt; 'required'
      ]);
  
      $player-&gt;update($request-&gt;all());
  
      return redirect()-&gt;route('games.index')
          -&gt;with('erfolgreich','Frage wurde erfolgreich geändert!');
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;form method="POST" action="{{ route('games.update',$player-&gt;id) }}"&gt;
              {{ csrf_field() }}
              {{ method_field('PUT') }}
              &lt;input type="number" value="{{ $player-&gt;points }}" name="points" id="pointcounter"&gt;
              &lt;button type="submit" class="btn btn-primary m-3"&gt;Nächste Frage &amp;raquo;&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>Im trying to create a simple quiz with laravel and later on I want the code to add the number from my input-field to the points-column in my database.
  Does someone know why it's not working? I don't get an php error it just won't update my database :(</p>
  
  <p>Since if have basically no idea what im doing here is my git repository if it helps: </p>
  
  <p><a href="https://github.com/dirtypaulmfz/Quiztopher.git" rel="nofollow noreferrer">https://github.com/dirtypaulmfz/Quiztopher.git</a></p>
  
  <p>Thanks for the help!</p>