add more controllers and fix tests

This commit is contained in:
root
2026-03-09 11:54:13 -04:00
parent 0c3e9b16f7
commit 1cb3573d4b
74 changed files with 2761 additions and 2728 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Requests\Email;
use App\Http\Requests\ApiFormRequest;
class EmailSendRequest extends ApiFormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'recipient' => ['required', 'email'],
'subject' => ['required', 'string', 'max:255'],
'html_message' => ['required', 'string'],
'profile' => ['nullable', 'string', 'max:50'],
'reply_to_email' => ['nullable', 'email'],
'reply_to_name' => ['nullable', 'string', 'max:100'],
'attachments' => ['nullable', 'array'],
'attachments.*' => ['file', 'max:5120'],
];
}
}