Skip to content

Commit

Permalink
Update Event.php
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Custodio <[email protected]>
  • Loading branch information
leonardocustodio authored Oct 8, 2024
1 parent 40388c7 commit f708646
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function toBroadcast(?array $with = null): array

public function getValue(array $data, array|string|int $keys): mixed
{
if (!is_array($keys)) {
$keys = [$keys];
}
$keys = Arr::wrap($keys);

foreach ($keys as $key) {
if (Arr::has($data, $k = "event.{$this->getKey($key)}")) {
Expand Down

0 comments on commit f708646

Please sign in to comment.