админка
This commit is contained in:
@@ -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('Этот инвайт-код уже использован.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user