Files
InvoiceShelf/app/Http/Requests/MailEnvironmentRequest.php
2026-04-09 10:06:27 +02:00

28 lines
587 B
PHP

<?php
namespace App\Http\Requests;
use App\Services\MailConfigurationService;
use Illuminate\Foundation\Http\FormRequest;
class MailEnvironmentRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return app(MailConfigurationService::class)->validationRules(
$this->string('mail_driver')->toString()
);
}
}