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

vishalkpatel's avatar

Localization of Webhook routes

Is it good to localize the webhook URLs also? My Project uses mcamara/laravel-localization so all my URLs are localized including webhook urls with the language prefix. I know the way to exclude those from being localized by the package but I want to know more on any issues that might face if I keep the webhook URLs localized.

Looking forward to hear some advice!

0 likes
2 replies
Sinnbeck's avatar

Why would they need to be? I mean, does the service who is sending the webhooks support localization?

vishalkpatel's avatar

@Sinnbeck Yes, I also don't see any point of localizing them. The service simply send POST request to webhook URL we provided and then we do rest in our app. The localization is not used in entire webhook processing. So I think skipping them from the localization is a good idea. Thanks for the feedback!

Please or to participate in this conversation.