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.
2 parents d05fee6 + bfd29b1 commit 8df786dCopy full SHA for 8df786d
src/ResponseFactory.php
@@ -26,6 +26,8 @@ public function share($key, $value = null)
26
{
27
if (is_array($key)) {
28
$this->sharedProps = array_merge($this->sharedProps, $key);
29
+ } elseif($key instanceof Arrayable) {
30
+ $this->sharedProps = array_merge($this->sharedProps, $key->toArray());
31
} else {
32
Arr::set($this->sharedProps, $key, $value);
33
}
0 commit comments