админка

This commit is contained in:
2026-03-13 23:33:35 +04:00
parent bae063a4fa
commit eaedeeb52b
41 changed files with 2506 additions and 67 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Exceptions;
use RuntimeException;
class InviteCodeException extends RuntimeException
{
public string $field = 'invite_code';
public static function invalid(): self
{
return new self('Укажи корректный инвайт-код.');
}
public static function alreadyUsed(): self
{
return new self('Этот инвайт-код уже использован.');
}
}