Level 50
Hi @nafeeur10
Your button will either have a <a href> tag and link to a route that you define in web.php or your button should be a submit button of a <form> and also POST to a defined route. What you are referring to is interactive data binding and it is why people will use Javascript, VueJS for example. Have a look:
https://vuejs.org/v2/guide/events.html#Listening-to-Events
or
https://vuejs.org/v2/guide/forms.html
Hope it helps!