---
title: "Comment by Bardhyl Fejzullahu on \"How to secure model ID’s in Livewire and why this is important\" | Hashnode"
description: "I thought this is handled automatically via checksum. From livewire documentation v2 (cannot paste the link): The Checksum The fundamental security underpinning"
url: "https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63e421b4c12298e89c7150b4"
---

[Discussion](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

Comment [How to secure model ID’s in Livewire and why this is important](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

[Bardhyl Fejzullahu](https://hashnode.com/@bardh7)

[Feb 8, 2023](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63e421b4c12298e89c7150b4)

I thought this is handled automatically via checksum. From livewire documentation v2 (cannot paste the link):

The Checksum The fundamental security underpinning Livewire is a "checksum" that travels along with request/responses and is used to validate that the state from the server hasn't been tampered with in the browser.

[Stef Rouschop](https://hashnode.com/@stefrouschop)

[Feb 9, 2023](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63e421b4c12298e89c7150b4#reply-63e499c09870a6e797804d3c)

Yes, there is a checksum. But that is the point. If you would change the value through the "wire" by using `$0.__livewire.$wire.postId = 5` the checksum will be recalculated because this is a legit action because $postId is a public property. Only if you would do something like `$0.__livewire.data.postId = 5` the checksum would fail as soon as you click save.

[Bardhyl Fejzullahu](https://hashnode.com/@bardh7)

[Feb 9, 2023](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63e421b4c12298e89c7150b4#reply-63e4b70fd0024cf4f3e75c8b)

[Stef Rouschop](https://hashnode.com/@stefrouschop) got it. Thanks
