31 lines
738 B
PHP
31 lines
738 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateWebmailMessageRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'folder' => ['nullable', 'string', 'max:30'],
|
|
'status' => ['nullable', 'string', 'max:30'],
|
|
'is_read' => ['nullable', 'boolean'],
|
|
'is_starred' => ['nullable', 'boolean'],
|
|
'subject' => ['nullable', 'string', 'max:255'],
|
|
'body' => ['nullable', 'string'],
|
|
'metadata' => ['nullable', 'array'],
|
|
];
|
|
}
|
|
} |