You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -10,7 +10,10 @@ class ValidateInstallationKeyRule implements ValidationRule
|
||||
{
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
if ($value !== WebsiteInstallation::first()->installation_key) {
|
||||
/** @var WebsiteInstallation|null $installation */
|
||||
$installation = WebsiteInstallation::first();
|
||||
|
||||
if (! $installation || $value !== $installation->installation_key) {
|
||||
$fail('The :attribute does not match');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user