1 year ago

Call a post route using a button.

Posted 1 year ago by nyel-dev

Is it possible to do this?

Let's say I have a route like this:

Route::post('test/{id}', function($id) {
return $id

and call it by a button?

<a href="website.com/test/1234"> send </a>

Please sign in or create an account to participate in this conversation.