how to store category slug in laravel code example
Example 1: laravel slug
$ composer require cviebrock/eloquent-sluggable
Example 2: laravel display category post by slug
Route::get(/category/{slug});
public function postCategory($slug)
{
$posts = Post::where('slug', $slug)->get();
return view('front.posts.category', compact('posts'));
}