|
- <?php
-
- namespace App\Http\Controllers\Web\Customer;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Http\Controllers\Web\Rule;
-
- class BeforeUpdateParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- 'user_id' => $this->numeric(),
- 'email' => $this->str([...Rule::email()]),
- 'first_name' => $this->str(true),
- 'last_name' => $this->str(true),
- 'first_name_kana' => $this->str(true),
- 'last_name_kana' => $this->str(true),
- 'zip_code' => $this->str(true),
- 'pref_code' => $this->str(true),
- 'address1' => $this->str(true),
- 'address2' => $this->str(true),
- 'address3' => $this->str(true),
- 'phone_number' => $this->str(true),
- ];
- }
- }
|