mirror of
https://github.com/koel/koel
synced 2024-12-29 22:13:06 +00:00
24 lines
484 B
PHP
24 lines
484 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests\API;
|
||
|
|
||
|
use Illuminate\Validation\Rules\Password;
|
||
|
|
||
|
/**
|
||
|
* @property-read string $token
|
||
|
* @property-read string $email
|
||
|
* @property-read string $password
|
||
|
*/
|
||
|
class ResetPasswordRequest extends Request
|
||
|
{
|
||
|
/** @return array<mixed> */
|
||
|
public function rules(): array
|
||
|
{
|
||
|
return [
|
||
|
'token' => 'required',
|
||
|
'email' => 'required|email',
|
||
|
'password' => ['sometimes', Password::defaults()],
|
||
|
];
|
||
|
}
|
||
|
}
|