Level 3
You will need middleware for this
https://dev.to/samolabams/transforming-laravel-request-data-using-middleware-2k7j
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is there a way to modify the request data before being evaluated? I'm working on a custom request, and I need to transform a JSON string into a PHP array by using json_decode method.
I've already tried overriding ValidationData and All methods within the requests but they don't seem to be working on 5.7
Is there a workaround for this? I'm kind of lost
Please or to participate in this conversation.