Laravel overwrite value in request

Published 7 months ago by JaydeepMor

I am get request value like,

request('info.product');

But now i want to overwrite this value.

Best Answer (As Selected By JaydeepMor)
martinbean

@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.

martinbean

@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.

Please sign in or create an account to participate in this conversation.