R
R
root092019-09-04 21:31:45
Laravel
root09, 2019-09-04 21:31:45

Route Parameters for multiple controllers?

There are two controllers in routes:

Route::get('/{slug}', '[email protected]');
Route::get('/{slug}', '[email protected]');

How to make them work?
That is, the first line overlaps the second, and you can't access the link to the vocalist.
It is necessary from the root of the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2019-09-04
@root09

In your case, the Framework itself is powerless. From this moment, work on the application architecture begins. To solve your problem without using any impurities in the address, the only correct and universal solution would be to create an additional table that will contain the address prefix, record type and
its
id you need to create which will be engaged in processing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question