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

blucurrent's avatar

Convert JSON file to Laravel Request

Is there a way to convert a .json file into a Laravel request so that I have use $request->input('somevalue', NULL); if the json object doesn't have the property I am looking for when using it to create my Laravel model?

0 likes
0 replies

Please or to participate in this conversation.