feat(receivables): fresh receivables implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 09:38:43 +02:00
parent d593cccccf
commit 95984bd39c
22 changed files with 2351 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Domains\Receivables\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* The composed receipt mail: an envelope and a body, both written by the
* sender. Copies are optional.
*/
class SendPaymentRequest extends FormRequest
{
/**
* The send ability is checked by the controller, against the payment.
*/
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'],
];
}
}