Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JaydeepMor's avatar

Laravel overwrite value in request

I am get request value like,

request('info.product');

But now i want to overwrite this value.

0 likes
1 reply
martinbean's avatar
Level 80

@JaydeepMor You shouldn’t overwrite user-submitted data, otherwise your application isn’t working with the same request that was submitted, which may lead to hard-to-track bugs.

2 likes

Please or to participate in this conversation.