領収証発行サービス
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.

27 satır
566B

  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. /**
  7. * @property string $email
  8. * @property string $name
  9. * @property string $password
  10. */
  11. class CreateParam extends BaseParam
  12. {
  13. public function rules(): array
  14. {
  15. return
  16. [
  17. User::COL_NAME_EMAIL => $this->str(['email:dns']),
  18. User::COL_NAME_NAME => $this->str(),
  19. User::COL_NAME_PASSWORD => $this->str([new LoginPassword()]),
  20. ];
  21. }
  22. }