mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
28 lines
587 B
PHP
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()
|
|
);
|
|
}
|
|
}
|