We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a43781d + 84e4c92 commit f027093Copy full SHA for f027093
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