How to loop through $request and extract specific parameters

This is a screenshot dd($request) it contains alot information. I'd like to extract just the #parameter: array:10 bits. I know how to pull them out one at a time with the $request->get('parametername') method, but I was hopeing there's a way to do it with a loop. This will run in the controler.

Screenshot of a dd($request)

1 answer

  • answered 2021-04-21 16:21 dev_mustafa

    You can achieve as below:


    It will return all the data from parameters