feat(platform): fresh mail, pdf and storage implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 11:15:24 +02:00
parent a7b272c731
commit c35999aa9b
17 changed files with 1569 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
namespace App\Platform\Mail\Http\Requests;
use App\Platform\Mail\Application\MailConfigurationService;
use Illuminate\Foundation\Http\FormRequest;
/**
* Guards an installation-wide mail transport submission, checking it against
* the field set of whichever driver the payload names.
*/
class MailEnvironmentRequest extends FormRequest
{
/**
* Access is gated by the controller's ability check, not here.
*/
public function authorize(): bool
{
return true;
}
/**
* Delegate the rule set to the configuration service, which knows which
* fields belong to the driver being submitted.
*/
public function rules(): array
{
$driver = $this->string('mail_driver')->toString();
return app(MailConfigurationService::class)->validationRules($driver);
}
}