Skip to content
Advertisement

Laravel str_slug not working for unicode bangla

I am working in a laravel project. I have slugged url. Its working fine for English language. But while I use Bangla it returns empty. Please help me to solve the issue.

JavaScript

Advertisement

Answer

str_slug or facade version Str::slug doesn’t work with non-ascii string. You can instead use this approach

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement