File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212if (empty ($size )){
1313 $size = ' responsive' ;
1414}
15+ if (empty ($method )){
16+ $method = ' POST' ;
17+ }
1518? >
1619<div v-pre rel =" brainblocks-button" data-id =" {{ $buttonId } }" data-amount =" {{ $amount } }" data-destination =" {{ $destination } }" data-currency =" {{ $currency } }" data-size =" {{ $size } }" data-expanded =" {{ $expanded } }" id =" {{ $buttonId } } -button" ></div >
17- <form action =" {{ $action } }" method =" POST" id =" {{ $buttonId } } -form" >
20+ <form action =" {{ $action } }" @if ($method == ' GET' ) method =" GET" @else method =" POST" @endif id =" {{ $buttonId } } -form" >
21+ @if (! in_array ($method ,[' GET' ,' POST' ]) )
22+ <input type =" hidden" name =" _method" value =" {{ $method } }" />
23+ @endif
1824 <input type =" hidden" name =" brainblocks_token" id =" {{ $buttonId } } -token" value =" " />
1925 {{ csrf_field () } }
2026</form >
You can’t perform that action at this time.
0 commit comments