🆙 Forget data back 🆙

This commit is contained in:
Remco
2026-01-07 20:31:19 +01:00
parent acf2d7e661
commit 789b670f51
412 changed files with 66963 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
namespace App\Rules;
use App\Models\Miscellaneous\WebsiteInstallation;
use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
class ValidateInstallationKeyRule implements ValidationRule
{
public function validate(string $attribute, mixed $value, Closure $fail): void
{
if ($value !== WebsiteInstallation::first()->installation_key) {
$fail('The :attribute does not match');
}
}
}