|
- <?php
-
- namespace App\Http\Controllers\Web\Customer;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Rules\Kana;
- use App\Rules\ZipCode;
-
- /**
- * @property string name
- * @property string nameKana
- * @property string zipCode
- * @property string address
- * @property string phoneNo
- * @property ?string memo
- */
- class UpdateUserInfoOrderParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- 'name' => $this->str(),
- 'name_kana' => $this->str([new Kana()]),
- 'zip_code' => $this->str([new ZipCode()]),
- 'address' => $this->str(),
- 'phone_no' => $this->str(),
- 'memo' => $this->str(true),
- ];
- }
- }
|