title: Laravel 404 page not found, route exists
body: <p>I am trying to navigate to my "productdetail" page but it givdes me a 404. The route to productdetail does exists. I am trying to give product information from shop to productdetail</p>
  
  <p>My controller:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use DB;
  use Illuminate\Http\Request;
  use App\Product;
  
  class ProductsController extends Controller
  {
      public function __construct()
      {
          $this-&gt;middleware('auth');
      }
  
      public function shopindex()
      {
          $productsOTs = DB::select(DB::raw("SELECT * FROM wiz.productimages WHERE Afkorting = 'PPI' LIMIT 83, 3"));
          return view('shop', compact('productsOTs'));
      }
  
      public function productdetail(Product $Product)
      {   
          return view('Products.productdetail', compact('productsOT'));
  
      }
  
  }
  </code></pre>
  
  <p>My shop page link to productdetail: </p>
  
  <pre><code>           @foreach ($productsOTs as $productsOT)
                  &lt;div class="card ot-product" id="heightwidthfix"&gt;
                      &lt;img class="card-img-top cardstop" src="{{$productsOT-&gt;imagelink}}" alt="Card image cap" id="myshopmodal1" height="400px" width="300px"&gt;
                      &lt;div class="card-body"&gt;
                          &lt;h5 class="card-title"&gt;{{$productsOT-&gt;Productomschrijving}}&lt;/h5&gt;
                          &lt;p class="card-text"&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&lt;/p&gt;
                      &lt;/div&gt;
                      &lt;div class="card-body"&gt;
                          &lt;a href="/shop/productdetail/{{ $productsOT-&gt;Productcode }}" class="card-link"&gt;Bekijk hier het product&lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              @endforeach
  </code></pre>
  
  <p>My routes: </p>
  
  <pre><code>Route::get('/shop', ['middleware' =&gt; 'auth', 'uses' =&gt; 'ProductsController@shopindex']);
  Route::get('/shop/productdetail/{product}', ['middleware' =&gt; 'auth', 'uses' =&gt; 'ProductsController@productdetail']);
  </code></pre>
  
  <p>I have been struggling with this problem for a while now, i hope someone can help me.</p>