2023-12-15 15:53:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Fo\Customers;
|
|
|
|
|
|
|
|
|
|
class UpdateAccountRequest extends CreateAccountRequest
|
|
|
|
|
{
|
2023-12-18 10:30:19 +01:00
|
|
|
/** @var array */
|
|
|
|
|
private static $skeleton = [
|
|
|
|
|
'lastname',
|
|
|
|
|
'firstname',
|
|
|
|
|
'birth_date',
|
|
|
|
|
'phone',
|
|
|
|
|
'address',
|
|
|
|
|
'address2',
|
|
|
|
|
'postcode',
|
|
|
|
|
'city',
|
|
|
|
|
'country',
|
|
|
|
|
'opt_in',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function rules()
|
|
|
|
|
{
|
|
|
|
|
return array_merge(
|
|
|
|
|
\array_intersect_key(
|
|
|
|
|
parent::rules(),
|
|
|
|
|
\array_flip(self::$skeleton)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
2023-12-15 15:53:55 +00:00
|
|
|
}
|