A
A
adam_carraway2018-10-03 12:24:15
Laravel
adam_carraway, 2018-10-03 12:24:15

How to write routes correctly?

Faced this problem:
I have a route

Route::get('/{category}', 'News\[email protected]_bycategory')->name('news.bycategory');

It displays news of one category stite.ru/category , but now if you go to site.tu/login to login, this route works, not Auth::routes();
How to solve this issue, how to correctly register routes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-10-03
@adam_carraway

The news route must be specified last.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question