feat(sales): fresh sales implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 01:26:48 +02:00
parent e5dc314b68
commit 5269344458
53 changed files with 5736 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Domains\Sales\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* The envelope of an invoice mail: the message itself, who it comes from, who
* it goes to, and the optional carbon copies.
*/
class SendInvoiceRequest 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 [
'body' => 'required',
'subject' => 'required',
'from' => 'required',
'to' => 'required',
'cc' => 'nullable',
'bcc' => 'nullable',
];
}
}