app/Http/Requests/User/UpdateUserPasswordRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'password' => array_merge(
                [
                    new UnusedPassword((int) $this->segment(2)),
                ],
                PasswordRules::changePassword($this->email)
            ),
        ];
    }
public function rules ( ) { return [ 'password' => array_merge ( [ new UnusedPassword ( ( int ) $ this -> segment ( 2 ) ) , ] , PasswordRules :: changePassword ( $ this -> email ) ) , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .