title: Routes: one uri, two controllers. Laravel 8
body: <p>So, there are the conflicting routes:</p>
  <pre><code>Route::get('{post:slug}', [PostController::class, 'show'])-&gt;name('front.posts.show');
  Route::get('{page:slug}', [PageController::class, 'show'])-&gt;name('front.pages.show');
  </code></pre>
  <p>I had an idea to unite them in one common controller and one method, but Post and Page are so different entities with their own additional methods and variables in <code>show()</code>. If I mix them, it will be a mess, that no one could ever understand. Maybe there is another way, perhaps with middleware somehow?</p>