mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-01 12:51:00 +00:00
36 lines
728 B
PHP
36 lines
728 B
PHP
<?php
|
|
|
|
namespace App\Domains\Sales\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
/**
|
|
* The envelope of an estimate mail: who it goes to, what it says, and the
|
|
* optional carbon copies.
|
|
*/
|
|
class SendEstimatesRequest extends FormRequest
|
|
{
|
|
/**
|
|
* The send ability is checked in the controller.
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'subject' => 'required',
|
|
'body' => 'required',
|
|
'from' => 'required',
|
|
'to' => 'required',
|
|
'cc' => 'nullable',
|
|
'bcc' => 'nullable',
|
|
];
|
|
}
|
|
}
|