Php 更改密码时出现Laravel 4错误

Php 更改密码时出现Laravel 4错误,php,encryption,change-password,laravel-4.2,Php,Encryption,Change Password,Laravel 4.2,我的控制器 public function update($id) { if (!is_numeric($id)) { // @codeCoverageIgnoreStart return \App::abort(404); // @codeCoverageIgnoreEnd } $temp = Input::all(); $temp['password'] = Hash::make($temp['pas

我的控制器

    public function update($id)
{
    if (!is_numeric($id)) {
        // @codeCoverageIgnoreStart
        return \App::abort(404);
        // @codeCoverageIgnoreEnd
    }

    $temp = Input::all();

    $temp['password'] = Hash::make($temp['password']);

    //form Processing
    $result = $this->userForm->update($temp);
    //$result = $this->userForm->update(Input::all());

    if ($result['success']) {
        // Success!
        Session::flash('success', $result['message']);
        return Redirect::action('UserController@index', array($id));

    } else {
        Session::flash('error', $result['message']);
        return Redirect::action('UserController@edit', array($id))
            ->withInput()
            ->withErrors($this->userForm->errors());
    }
}
我的看法

    <div class="form-group {{ ($errors->has('firstName')) ? 'has-error' : '' }}" for="firstName">
    {{ Form::label('edit_firstName', 'First Name', array('class' => 'col-sm-2 control-label')) }}
    <div class="col-sm-10">
        {{ Form::text('firstName', $user->first_name, array('class' => 'form-control', 'placeholder' => 'First
        Name', 'id' => 'edit_firstName'))}}
    </div>
    {{ ($errors->has('firstName') ? $errors->first('firstName') : '') }}
</div>


<div class="form-group {{ ($errors->has('lastName')) ? 'has-error' : '' }}" for="lastName">
    {{ Form::label('edit_lastName', 'Last Name', array('class' => 'col-sm-2 control-label')) }}
    <div class="col-sm-10">
        {{ Form::text('lastName', $user->last_name, array('class' => 'form-control', 'placeholder' => 'Last Name',
        'id' => 'edit_lastName'))}}
    </div>
    {{ ($errors->has('lastName') ? $errors->first('lastName') : '') }}
</div>

@if (Sentry::getUser()->hasAccess('admin'))
<div class="form-group">
    {{ Form::label('edit_memberships', 'Group Memberships', array('class' => 'col-sm-2 control-label'))}}
    <div class="col-sm-10">
        @foreach ($allGroups as $group)
        <label class="checkbox-inline">
            <input type="checkbox" name="groups[{{ $group->id }}]" value='1'
            {{ (in_array($group->name, $userGroups) ? 'checked="checked"' : '') }} > {{ $group->name }}
        </label>
        @endforeach
    </div>
</div>

<div class="form-group {{ ($errors->has('password')) ? 'has-error' : '' }}">
        {{ Form::password('password', array('class' => 'form-control', 'placeholder' => 'Password')) }}
        {{ ($errors->has('password') ? $errors->first('password') : '') }}
</div>
@endif
<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        {{ Form::hidden('id', $user->id) }}
        {{ Form::submit('Submit Changes', array('class' => 'btn btn-primary'))}}
    </div>
</div>
{{ Form::close()}}</div>

{{Form::label('edit_firstName','firstName',array('class'=>'col-sm-2控制标签'))}
{{Form::text('firstName',$user->first_name,数组('class'=>'表单控件','placeholder'=>'首先
名称“,”id“=>”编辑名称“)}
{{($errors->has('firstName')?$errors->first('firstName'):''}
{{Form::label('edit_lastName','lastName',array('class'=>'col-sm-2控制标签'))}
{{Form::text('lastName',$user->last_name,数组('class'=>'表单控件','placeholder'=>'last name',
'id'=>'edit_lastName'))}
{{($errors->has('lastName')?$errors->first('lastName'):“”)}
@if(Sentry::getUser()->hasAccess('admin'))
{{Form::label('edit_memberships','Group memberships',array('class'=>'col-sm-2 control label'))}
@foreach($all groups作为$group)
名称,$userGroups)?'checked=“checked”:“”)}>{{{$group->name}
@endforeach
{{Form::password('password',array('class'=>'表单控件','placeholder'=>'password'))}
{{($errors->has('password')?$errors->first('password'):'')}
@恩迪夫
{{Form::hidden('id',$user->id)}
{{Form::submit('submitchanges',array('class'=>'btn btn primary'))}
{{Form::close()}}
我正在尝试更新数据配置文件,如;姓名、姓氏、成员和密码。 我无法更新此密码,我的加密密码如下:

$2y$10$mjkd5MRgUEn2JSK52xrrQ.bpDz5WZwAaHje6gd0TbmH7h4H3.7BBO

哈希不是加密。问题是什么?错误更新密码!这个密码不能用replace@khakim您得到的实际具体错误是什么?“此密码无法替换”不是Laravel错误,也不存在于您的代码中。