Route & Prefix has same name. I'm not able to get ID
parameter of {hotel}
which is empty as i mention below in image. What is the best way to use prefix and resource controller with same name?
Routes/web.php
Route::namespace('Admin\Hotel')->prefix('hotels')->name('hotels.')->group(function () {
Route::resource('/', 'HotelController');
Route::resource('rooms', 'RoomController');
Route::resource('rooms/gallery', 'RoomGalleryController');
});
php artisan route:list
for Route::resource('/', 'HotelController')
URI: http:example.com/admin/hotels
route group prefix name ishotels
and my resource controller name ishotels
as well. If prefix & resource controller name is same then what is the best way to use it? – Fay