mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
- 2.x - scripts
This commit is contained in:
@ -11,7 +11,10 @@ class Discord extends AbstractNotificationChannel
|
||||
public function createRules(array $input): array
|
||||
{
|
||||
return [
|
||||
'webhook_url' => 'required|url',
|
||||
'webhook_url' => [
|
||||
'required',
|
||||
'url',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,10 @@ class Email extends AbstractNotificationChannel
|
||||
public function createRules(array $input): array
|
||||
{
|
||||
return [
|
||||
'email' => 'required|email',
|
||||
'email' => [
|
||||
'required',
|
||||
'email',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,10 @@ class Slack extends AbstractNotificationChannel
|
||||
public function createRules(array $input): array
|
||||
{
|
||||
return [
|
||||
'webhook_url' => 'required|url',
|
||||
'webhook_url' => [
|
||||
'required',
|
||||
'url',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user