laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 31 forks source link

merge in request data using dot notation #2637

Open alirzaj opened 3 years ago

alirzaj commented 3 years ago

today at work i needed to merge a key into an array that was on the request class. i was wondering if sth like this would be accepted if i make a PR:

$request->merge('arr.key','value')

this would override value of key in arr if it's not empty.