- 2.x - scripts

This commit is contained in:
Saeed Vaziry
2024-10-06 20:49:59 +02:00
parent c24b4b7333
commit 8b2338cb41
32 changed files with 936 additions and 79 deletions

View File

@ -11,7 +11,10 @@ class Discord extends AbstractNotificationChannel
public function createRules(array $input): array
{
return [
'webhook_url' => 'required|url',
'webhook_url' => [
'required',
'url',
],
];
}

View File

@ -13,7 +13,10 @@ class Email extends AbstractNotificationChannel
public function createRules(array $input): array
{
return [
'email' => 'required|email',
'email' => [
'required',
'email',
],
];
}

View File

@ -11,7 +11,10 @@ class Slack extends AbstractNotificationChannel
public function createRules(array $input): array
{
return [
'webhook_url' => 'required|url',
'webhook_url' => [
'required',
'url',
],
];
}

View File

@ -14,8 +14,12 @@ class Telegram extends AbstractNotificationChannel
public function createRules(array $input): array
{
return [
'bot_token' => 'required|string',
'chat_id' => 'required',
'bot_token' => [
'required',
],
'chat_id' => [
'required',
],
];
}