mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
23 lines
484 B
PHP
23 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()],
|
|
];
|
|
}
|
|
}
|