D
D
D44k2015-06-22 16:32:30
Laravel
D44k, 2015-06-22 16:32:30

Url generation, Cyrillic -> Latin and vice versa. Where can I find a script, plugin for Laravel?

Tell me how to correctly implement url generation from Cyrillic to Latin and vice versa.
To form the menu, Russian names are taken from the database - for example Refrigerators. The required url site.ru/holodilniki/ in the script handler, however, needs to be converted back to Refrigerators (up to a letter). There are official approved conversion tables, but they are not suitable for url: b -> `, etc.
Perhaps there is a special plugin for Laravel?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2015-06-22
@JhaoDa

1. Since version 5.0, the url from Cyrillic is perfectly generated by the str_slug function.
2. It is not clear why to do the reverse transformation. For the page title? It seems to me that this is a bad way. It's better to just get a Cyrillic string from the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question