Slug fields #702
-
Is it possible to use the backpack functionality to turn text in any language into a slug? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @dimkys . I wouldn't say it's possible for every language without additional work. We had problems previously with hebraic text for example Laravel-Backpack/CRUD#5272 I would say for most of the languages you can use the Cheers |
Beta Was this translation helpful? Give feedback.
-
@pxpm I’m talking about the functionality that, on the front-end side, takes data from the associated field and inserts it into the slug input. |
Beta Was this translation helpful? Give feedback.
I think with the package https://github.com/cviebrock/eloquent-sluggable you are able to generate slugs from hebrew.
From the front-end-side, you can use a script like in our example: https://backpackforlaravel.com/docs/6.x/crud-fields-javascript-api#9-when-a-text-input-is-written-into-write-in-a-second-input-eg
Not sure it will work with hebrew strings, so you may need to change it to fit your usecase.
Cheers