How to get all the keys in the $ request array in Laravel? Prompt a method without search of this array, without any cycles. There must be a simple out of the box method.

1 answer 1

If out of the box, then you can:

 $keys = request()->request->keys(); 
  • It works coolly, but it's unclear what this property is -> request and the keys method was not found in the documentation - Artur Han