Skip to content

Commit

Permalink
unique array
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 24, 2024
1 parent e4796bc commit 5ed0ce8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ protected function discoverEventsWithin()
*/
public static function addEventDiscoveryPaths(array|string $paths)
{
static::$eventDiscoveryPaths = array_merge(static::$eventDiscoveryPaths, Arr::wrap($paths));
static::$eventDiscoveryPaths = array_values(array_unique(
array_merge(static::$eventDiscoveryPaths, Arr::wrap($paths))
));
}

/**
Expand Down

0 comments on commit 5ed0ce8

Please sign in to comment.