title: Different routes calling to a function in Laravel
body: <p>I am migrating a site from core PHP to Laravel 8. I have to display the Business List page and the Business Details page in a module. I am working on Routes and get stuck with it. Those routes are -</p>
  <pre><code>Route::post(&quot;/business/{id1}/&quot;, [FrontendBusinessController::class,'show'])
      -&gt;name('business_details');
  Route::get(&quot;/business/{id}&quot;, [FrontendBusinessController::class,'business_list'])
      -&gt;name('business_list');
  </code></pre>
  <p>Here, the trailing '/' is what differentiates the routes
  '/business/{id} '  -  this route  is for business listing
  '/business/{id}/ '  -  this route is for business detailed page</p>
  <p>The difference between them is that the first route ends without a  '/' (slash), and the second route ends with '/'. The problem I face is both of the routes get directed to the 'show' function. I wonder how to fix this. Any idea?</p>