title: Slim with Eloquent URL rendering and updating issue
body: <p>I'm using Slim Framework with Eloquent ORM.</p>
  
  <p>I have the following table:</p>
  
  <pre><code>album
  -----------------
  album_id
  user_id
  album_name
  album_description
  </code></pre>
  
  <p>I could create a new record in album table. Successfully. And now I'm trying to edit album records.</p>
  
  <p>In <code>view_album.php</code>, I'm listing all the albums with the respective links to edit their name and description. Once clicked, that link redirects to <code>localhost/authentication/album</code>.</p>
  
  <p>Here is the code, I did for editing:</p>
  
  <pre><code>&lt;?php    
  $app-&gt;get('/edit_album/:album_id', function($album_id) use ($app) {
  
      $app-&gt;render('album/edit_album.php', [
          'albums' =&gt; $app-&gt;album-&gt;where('album_id', $album_id)-&gt;first(),
      ]);
  })-&gt;name('edit.album');
  
  $app-&gt;post('/edit_album/:album_id', function($album_id) use ($app) {
  
      $request = $app-&gt;request;
  
      $album_description = $request-&gt;post('album_description');
      $album_name = $request-&gt;post('album_name');
  
      $v = $app-&gt;validation;
  
      $v-&gt;validate([
          'album_name' =&gt; [$album_name, 'required|uniquealbum_name|max(50)'],
          'album_description' =&gt; [$album_description, 'required|max(500)']
      ]);
  
      if ($v-&gt;passes()) {
  
          $album = $app-&gt;album-&gt;where('album_id', $album_id)-&gt;update([
              'album_name' =&gt; $album_name,
              'album_description' =&gt; $album_description,
          ]);
  
          return $app-&gt;response-&gt;redirect($app-&gt;urlFor('view.albums'));
      }
  
      $app-&gt;render('album/edit_album.php', [     
          'errors' =&gt; $v-&gt;errors(),
          'request' =&gt; $request,
      ]);
  })-&gt;name('post.albumEdit');
  </code></pre>
  
  <p>Actual problems are:</p>
  
  <ol>
  <li>If the form validation fails, it outputs errors, but the user is redirected to
  <code>http://localhost/authentication/public/edit_album/:album_id</code>, instead of <code>http://localhost/authentication/public/edit_album/6</code>. Where 6 is the <code>album_id</code> from <code>album</code> table.</li>
  <li>The update query is not updating the table record at all. As my query is to update the record where <code>album_id</code> is 6.</li>
  </ol>