title: Route prefix with resource controller - Laravel 5.5
body: <p>Route &amp; Prefix has same name. I'm not able to get <code>ID</code> parameter of <code>{hotel}</code> which is empty as i mention below in image. What is the best way to use prefix and resource controller with same name?</p>
  
  <p><strong>Routes/web.php</strong></p>
  
  <pre><code>Route::namespace('Admin\Hotel')-&gt;prefix('hotels')-&gt;name('hotels.')-&gt;group(function () {
      Route::resource('/', 'HotelController');
      Route::resource('rooms', 'RoomController');
      Route::resource('rooms/gallery', 'RoomGalleryController');
  });
  </code></pre>
  
  <p><code>php artisan route:list</code> for <code>Route::resource('/', 'HotelController')</code></p>
  
  <p><a href="https://i.stack.imgur.com/1XmwD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1XmwD.png" alt="enter image description here"></a></p>