41 lines
903 B
PHP
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',
|
|
]);
|
|
}
|
|
}
|