on-internet
← Community

How protect public Laravel livewire property from manipulation?

Stack Overflow ·

I am mounting my component with an object $form which I need to access between requests. The data in $form is not secret, but should not be tampered with so I would like to make it a protected property. Though only public properties are preserved between requests leaving it exposed to front end. If possible, how can I prevent manipulation on this public property? I tried a check public function updating($key, $value) { if($key === 'form') return; } But I don't think that really does anything. Also, using sessions is not an alternative in my situation. Any ideas?

Comments

Sign in or sign up to comment and upvote.

No comments yet.