How do I add unknown parameters at route definition time laravel

Viewed 43

I will explain as much as possible

// route
category/{id} // ->name('category.action')

//form
<form action="route('category.action')">

<!-- some input's --!>

</form>

I have some buttons have a function and I have one form if a specific button is pressed the button id will be switched to route by javascript

Is there a way to make the paramter id flexible change with pressing the button

0 Answers
Related