This commit is contained in:
Andras Bacsai committed 2023-06-19 10:58:00 +02:00
1 parent 7bcbfc13b0
commit 448182497f
11 files changed
+59 -17

No files matched your search

+2 -1
View File
@@ -12,7 +12,8 @@ class Change extends Component
protected $rules = [
'private_key.name' => 'required|string',
'private_key.description' => 'nullable|string',
'private_key.private_key' => 'required|string'
'private_key.private_key' => 'required|string',
'private_key.is_git_related' => 'nullable|boolean'
];
protected $validationAttributes = [
'private_key.name' => 'name',
+1
View File
@@ -46,6 +46,7 @@ class Email extends Component
public function test_email()
{
Notification::send($this->settings, new TestEmail);
$this->emit('success', 'Test email sent.');
}
public function submit()
{
+1
View File
@@ -9,6 +9,7 @@ class PrivateKey extends BaseModel
'name',
'description',
'private_key',
'is_git_related',
'team_id',
];
static public function ownedByCurrentTeam(array $select = ['*'])