Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Add language to str_slug helper #19011

Merged
merged 1 commit into from
Apr 30, 2017
Merged

[5.5] Add language to str_slug helper #19011

merged 1 commit into from
Apr 30, 2017

Conversation

fernandobandeira
Copy link
Contributor

No description provided.

@taylorotwell taylorotwell merged commit deefa1f into laravel:master Apr 30, 2017
@mohamedsabil83
Copy link
Contributor

is it accept UTF-8 language like Arabic? When trying this:

echo str_slug('تجربة عنوان مقال', $separator = '-', $language = 'ar');

The result is:

tjrb-aanoan-mkal

Instead of:

تجربة-عنوان-مقال

@fernandobandeira
Copy link
Contributor Author

fernandobandeira commented Sep 14, 2017

@mohamedsabil83 It's for a different purpose, take a look on #18974 for more info =)

@mohamedsabil83
Copy link
Contributor

oh, thank you for details @fernandobandeira
I'll keep using eloquent-sluggable to generate Arabic slug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants