laravel slug post不适用于孟加拉语,但英语工作正常

时间:2017-10-16 15:47:09

标签: laravel slug

$data['slug']  = str_replace(' ','-', $request->slug);

导致错误

Sorry, the page you are looking for could not be found.

1 个答案:

答案 0 :(得分:1)

以下是解决此问题的另一种方法。

使用laravel slug str_slug($request->slug)