ldc-gen-game-web/app/Http/Requests/Fo/Customers/VerifyInformationsRequest.php
2026-10-20 12:27:49 +02:00

41 lines
903 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\Fo\Customers;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Support\Arr;
class VerifyInformationsRequest extends CreateAccountRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return auth('frontend')->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return Arr::only(parent::rules(), [
'lastname',
'firstname',
'phone',
'address',
'address2',
'postal_code',
'city',
'birth_date',
'country',
'opt_in',
'ok_cgv',
]);
}
}