MY Question without code so pls bear with me 🙂
Now in Laravel, you use for links of our app the slug to arrange the links of app. and youtube uses some letters and numbers I don’t know what it is for a video! like i0b2ejl7tXM
So what the difference in SEO if we use the unique code like youtube and we use the slug which is the name of the post?
2
Answers
From what I’ve taken from this article and from my experience, of course it has a difference. The difference, a good URL will increase your post ranks in search engine. But, please keep in mind that SEO isn’t just it. Please take a look at this good diagram.
You can use a function to generate and decode strings for your routes.
Routes:
Controller: