Hallo friend coders! :) I am just wondering how to obtain fully translated anchors in every supported language, and in an efficient way perhaps...
The problem is that you can only find the right url translation after a specific route has been recognized. Maybe add these translations to the response with a Middleware running after the request has been handled, fetching the variable part of the url (slug) from the DB and simply translating the rest with Lang::trans().
I doubt this is the most efficient pattern, yet can't think of a better one at the moment, I am still a beginner with Laravel.
Anyway: do you have any links supporting that statement about better SEO when the slug stays in the same language? This would completely void the effort to translate the slugs!
Hallo friend coders! :) I am just wondering how to obtain fully translated anchors in every supported language, and in an efficient way perhaps...
The problem is that you can only find the right url translation after a specific route has been recognized. Maybe add these translations to the response with a Middleware running after the request has been handled, fetching the variable part of the url (slug) from the DB and simply translating the rest with Lang::trans().
I doubt this is the most efficient pattern, yet can't think of a better one at the moment, I am still a beginner with Laravel.
Anyway: do you have any links supporting that statement about better SEO when the slug stays in the same language? This would completely void the effort to translate the slugs!
Thanks!