$slug = Str::slug($name);
Route::get('{slug_category}/{slug_post}', 'PostController@show')->name('post.show');
{{route('post.show', [$category->slug,$post->slug])}}
public function posts()
{
return $this->morphedByMany('App\Post', 'category_able');
}
$category = App\Category::first();
$category->posts();
Route::get("/{$category->slug}/{slug?}", 'BlogController@post')->name('post');
{{ route('post', $post->slug) }}