We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43781d commit 84e4c92Copy full SHA for 84e4c92
src/helpers.php
@@ -39,7 +39,14 @@ function channel_hash(...$values): string
39
}
40
41
if (! function_exists('channel_hash_equals')) {
42
- function channel_hash_equals($signature, ...$values): string
+ /**
43
+ * Check if the provided signature matches the generated one.
44
+ *
45
+ * @param string $signature
46
+ * @param mixed ...$values
47
+ * @return bool
48
+ */
49
+ function channel_hash_equals($signature, ...$values): bool
50
{
51
return $signature === md5(join('|', $values).config('app.key').config('app.url'));
52
0 commit comments