領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
599B

  1. <?php
  2. namespace App\Http\Controllers\Web\LoginUser;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Models\User;
  5. use App\Rules\LoginPassword;
  6. use Illuminate\Support\Carbon;
  7. /**
  8. * @property string $password
  9. * @property string? $id
  10. * @property Carbon $timestamp
  11. */
  12. class ChangePasswordParam extends BaseParam
  13. {
  14. public function rules(): array
  15. {
  16. return array_merge(
  17. [
  18. User::COL_NAME_PASSWORD => $this->str([new LoginPassword()]),
  19. User::COL_NAME_ID => $this->str(true),
  20. ],
  21. $this->timestamp()
  22. );
  23. }
  24. }