How to get value of data attribute from button to controller in laravel

Viewed 8600

How can we get the data attribute value from button to controller in laravel My button

<input type="submit" value="Add click" name="submit" id="submit" data-name="{{$value->name}}" data-click="{{$value->click}}">

i want to get data-click and data-name pass it to controller

$click=data-click;
$name=data-name;

from button attribute after submit form to controller

But the result not get the data-name and data-click value. How can we try this??

2 Answers
Related