|
- <?php
-
- namespace App\Http\Controllers\Web\LoginUser;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Models\User;
- use App\Rules\LoginPassword;
- use Illuminate\Support\Carbon;
-
- /**
- * @property string $password
- * @property string? $id
- * @property Carbon $timestamp
- */
-
- class ChangePasswordParam extends BaseParam
- {
- public function rules(): array
- {
- return array_merge(
-
- [
- User::COL_NAME_PASSWORD => $this->str([new LoginPassword()]),
- User::COL_NAME_ID => $this->str(true),
- ],
- $this->timestamp()
- );
- }
- }
|