Laravel Blog – canonical route does not work
I built a small blog controller to add a blog to my website like http://example.com/blog/post It works fine with the post id like: http://example.com/blog/1 But it doesn’t work with http://example.com/blog/postTitle Here is my code: Routes: Route::get(‘/blog/{blogPost}’, [‘as’ => ‘blogPost’, ‘uses’ => ‘BlogPostController@show’]); BlogPostControler.php : public function show(BlogPost $blogPost) { return view(‘blog.show’, [ ‘post’ => $blogPost,… Read More Laravel Blog – canonical route does not work