J
J
jelezo2017-07-05 19:55:23
Laravel
jelezo, 2017-07-05 19:55:23

Path in Laravel like {category}/{subcategory}/{title}.html?

Hey!
I started to understand with Laravel, but I ran into the problem of organizing paths in the application.
At the moment, it turned out to create a route like posts/{category}/{subcategory}/{title}.
Actually, the question arises, how to correctly create a route without the first "posts"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2017-07-05
@iNickolay

Either write a dynamic route and process it in the controller, or force paths.
In general, this question has already been asked .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question