Skip to content

Commit

Permalink
Merge pull request #281 from lukaskleinschmidt/dot-notation
Browse files Browse the repository at this point in the history
Enable "dot" notation for Objects
  • Loading branch information
reinink authored Jul 12, 2021
2 parents 8df786d + 9352caf commit bfb6ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function toResponse($request)

foreach ($props as $key => $value) {
if (str_contains($key, '.')) {
Arr::set($props, $key, $value);
data_set($props, $key, $value);
unset($props[$key]);
}
}
Expand Down

0 comments on commit bfb6ddf

Please sign in to comment.