We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a073e commit bfd29b1Copy full SHA for bfd29b1
src/ResponseFactory.php
@@ -25,6 +25,8 @@ public function share($key, $value = null)
25
{
26
if (is_array($key)) {
27
$this->sharedProps = array_merge($this->sharedProps, $key);
28
+ } elseif($key instanceof Arrayable) {
29
+ $this->sharedProps = array_merge($this->sharedProps, $key->toArray());
30
} else {
31
Arr::set($this->sharedProps, $key, $value);
32
}
0 commit comments