I'm trying to solve a double submission problem in my application. This happens when an impatient user hit the button more than once, the action is carried out severally.
@if($purchase->state == 1)
<form action="{{route('confirm',['uniqueid'=>$purchase->uniqueid])}}" method="post">
{{csrf_field()}}
<button type="submit" name="button" class="btn btn-danger btn-xs">Complete</button>
</form>
@endif