title: Laravel- Form post going to wrong URL
body: <p>I am learning Laravel from scratch.</p>
  
  <p>I am doing simple form "POST" but something is missing and I am not able to find out what is missing.</p>
  
  <p>So here is my "routes.php":</p>
  
  <p><code>Route::get('cards','CardsController@all');
  Route::get('cards/{card}','CardsController@show');
  Route::post('cards/{card}/notes','NotesController@new');</code></p>
  
  <p>and view:</p>
  
  <pre><code>&lt;div&gt;
                  &lt;form method="POST" action="cards/{{ $card-&gt;id }}/notes"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label&gt;Note body:&lt;/label&gt;
                              &lt;textarea name="body" class="form-control"&gt;&lt;/textarea&gt;
                      &lt;/div&gt;
  
                      &lt;button type="submit" class="btn btn-primary"&gt;Add&lt;/button&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>and here is controller:</p>
  
  <p>`
         
  
  <pre><code>   namespace App\Http\Controllers;
  
     use Illuminate\Http\Request;
  
    use App\Http\Requests;
  
     class NotesController extends Controller
     {
         public function new(Request $request){
            return $request-&gt;all();
        }
     }
  </code></pre>
  
  <p>`</p>
  
  <p>Now when I submit the form it gives me following error:</p>
  
  <p><code>NotFoundHttpException in RouteCollection.php line 161</code></p>
  
  <p>and the URL in browser becomes:</p>
  
  <p><code>http://localhost:88/learning/cards/cards/1/notes</code></p>
  
  <p>which is definitely wrong.</p>
  
  <p>I think I am missing something very basic.</p>
  
  <p>Please guide me.</p>
  
  <p>Thank you.</p>