Laravel facade Slug won't work for non English?

John

I want to create an URL string for non English stories from the story title

Ex: if the title is Laravel में आपका स्वागत है URL will be /Laravel-में-आपका-स्वागत-है-ag16826

Laravel has a facade Slug. But it won't work for non English.

How i can do this?? any help or suggestion!!! or any links where i can get help.

Vipertecpro

This method might help you URL SLUG , i tried this but spelling mistakes are there

Try this first,

Route::get('/test',function(){
    return preg_replace('/\s+/', '-', trim('Laravel में आपका स्वागत है'));
});

Output

Laravel-में-आपका-स्वागत-है

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Laravel named routes won't work on wampserver

분류에서Dev

RequestContext won't work

분류에서Dev

AJAXify won't work on phpBB?

분류에서Dev

Program won't work in FireFox

분류에서Dev

Fade in Function Won't Work

분류에서Dev

url facade in laravel 5

분류에서Dev

Why won't this regexp in htaccess work properly?

분류에서Dev

Alsamixer won't work with bluetooth device

분류에서Dev

Post variables with ajax won't work

분류에서Dev

Simple class won't work in C++

분류에서Dev

Why won't the routing work in this code?

분류에서Dev

Now visudo won't work at all

분류에서Dev

Why won't this MySQL stored procedure work?

분류에서Dev

The hover for my buttons and links won’t work

분류에서Dev

My update queries won't work

분류에서Dev

For /F "skip=0" won't work as expected

분류에서Dev

Laravel Facade Slug는 영어가 아닌 사람에게는 작동하지 않습니까?

분류에서Dev

Laravel cronjob in server won't run

분류에서Dev

Bootstrap/Laravel won't load javascripts

분류에서Dev

Laravel 4 update slug

분류에서Dev

Windows 7 computer won't boot and recovery doesn't work

분류에서Dev

Graphql Query with express and Mongodb won't work properly?

분류에서Dev

Why std::basic_fstream<unsigned char> won't work?

분류에서Dev

Java split() method won't work a second time

분류에서Dev

jQuery delay and javascript settimeout won't work with facebook button

분류에서Dev

Google Maps won't work when API key is provided

분류에서Dev

VBA - Conditional formatting: Excel 2010 won't work, Excel 2013 will

분류에서Dev

changing genemu jquery datepicker localization seetings won't work

분류에서Dev

Lightbox won't work when my site css page is linked