how to change or remove the id value used in the url to call certain data, when this url appears localhost:8000/product/sofa/10 i want other users to see the url just like this localhost:8000/product/sofa or localhost:8000/product/sofa/long ( rename 10 with long )
code in route
Route::get('/product/sofa/{id}',[ProductSofaController::class,'sofa']);
code in html
<a href="/product/sofa/{{ $id = 10 }}">
<img loading="auto" src="{{ asset('media/category/bg-sofa.jpg') }}"
alt="Sofa and Daybed">
</a>
code in controller
public function sofa(Request $request, $id){
$frame = frames::where('pf_product_category_id',[$id,16])
->where('pf_status',true)->with('linkProducts')
->get();
return view('frontend/sofa',compact('frame'));
}