Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fevis's avatar
Level 1

Translate route name

Hi

I am learning Laravel. I want to translate a route. I have created the route in english, to keep away from using my local language in code.

What i want to achieve.

Currently i have a get route called /petition/{$id}. I want to change this name to /underskriv/{$id}, but i dont want to rename in code.

Is this possible to achieve with some translating or something, and still keep the english names in code?

0 likes
2 replies
fevis's avatar
Level 1

Thank you very much. This package does the trick :)

Please or to participate in this conversation.