please check over your question.It makes no sense.
You dont show any route that would respond to /contact-us and your last paragraph you repeat the same route
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My app had the following routes
Route::resource('/', 'HomeController');
Route::resource('listings', 'ListingsController');
Now I need to add some pages like Imprints, Contact, About US. So, I created a Pages Controller
Route::get('/page', 'HomeController@show')->name('main.show');
In order to have:
Problem is that after introducing this, the http://myapp.com/listings became a 404 error because this is a "page" that does not exist.
Provided that I will have a blog in the future, I could change the pages to a new PagesController :
Route::resource('pages/{page}', 'PagesController');
But I will have :
But being honest, I do not think it is very elegant and I would like to have a clean structure like this:
Is there any way I could make that Route::resource('listings', 'ListingsController'); and Route::resource('/', 'HomeController'); coexist with each other?
Rerouting or something like that?
'/{page}'
is a catch all, place it at the end. Do you do this because all your routes are dynamic?
Please or to participate in this conversation.