Level 1
return response()
->json($response, 200, ['Content-type'=> 'application/json; charset=utf-8'], JSON_UNESCAPED_UNICODE);
this fixed the issue
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys, i am trying to build an app similar to IMDB for some reason laravel strips off cyrillic letters from the url, i was wondering is there any way i can prevent this?
my route is like this
Route::get('titles/{id}/{name}', 'TitleController@show')->middleware('prerenderIfCrawler');
the name stored in db is like Ford против Ferrari but the url reproduces like so https://mtdb.denisov.pro/titles/39/ford-ferrari. How can i prevent this?
Please or to participate in this conversation.