ldc-supportweb/app/Http/Requests/Auth/ForgotPasswordRequest.php
2026-06-05 17:05:46 +02:00

38 lines
767 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
/**
* Handles backend forgotten password form validation.
*/
class ForgotPasswordRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'email' => 'required|string|email:rfc,strict,dns,spoof,filter',
];
}
/**
* Get custom attributes for validator errors.
*
* @return array<string, string>
*/
#[\Override]
public function attributes(): array
{
return [
'email' => trans('validation.attributes.email'),
];
}
}