Initial Commit
This commit is contained in:
23
app/Http/Requests/ChangePassword.php
Normal file
23
app/Http/Requests/ChangePassword.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Usermanagement\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ChangePassword extends FormRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns an array of validation rules for the password and current password fields.
|
||||
*
|
||||
* @return array The validation rules for the password and current password fields.
|
||||
*/
|
||||
public function rules()
|
||||
: array
|
||||
{
|
||||
return [
|
||||
'password' => 'required|string|min:8|confirmed',
|
||||
'current_password' => 'required|string|min:8'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user