fix validation
This commit is contained in:
parent
19ce01f7d8
commit
81f837138d
1 changed files with 7 additions and 0 deletions
|
|
@ -138,6 +138,13 @@ public function syncData(bool $toModel = false)
|
|||
public function sendTestEmail()
|
||||
{
|
||||
try {
|
||||
$this->validate([
|
||||
'testEmailAddress' => 'required|email',
|
||||
], [
|
||||
'testEmailAddress.required' => 'Test email address is required.',
|
||||
'testEmailAddress.email' => 'Please enter a valid email address.',
|
||||
]);
|
||||
|
||||
$executed = RateLimiter::attempt(
|
||||
'test-email:'.$this->team->id,
|
||||
$perMinute = 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue