标签: laravel slug
$data['slug'] = str_replace(' ','-', $request->slug);
导致错误
Sorry, the page you are looking for could not be found.
答案 0 :(得分:1)
以下是解决此问题的另一种方法。
使用laravel slug str_slug($request->slug)
str_slug($request->slug)