35 lines
673 B
PHP
35 lines
673 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Fo\Customers;
|
|
|
|
class UpdateAccountRequest extends CreateAccountRequest
|
|
{
|
|
/** @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)
|
|
)
|
|
);
|
|
}
|
|
}
|