Laravel-8 Livewire-2 was hacked when passing data through wire:click

When I passing data in the blade file through wire:click="data('text')" then it's working fine.

But if I change the value in the blade file like wire:click="data('new text')", then this value changed.
This is my blade file

<button wire:click="delete('1')" type="button">Delete Record</button>

But when I change the value in the blade file and click on the button then this value changed.

<button wire:click="delete('10')" type="button">Delete Record</button>

Please! tell me. How this problem will be solved.



from Recent Questions - Stack Overflow https://ift.tt/3zzwuGw
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)