change password user laravel 5.3 : <p>I want to create form with 3 field (old_password, new_password, confirm_password) with laravel 5.</p>

<p><strong>View</strong></p>

<p>old password : 
<code>{!! Form::password('old_password',['class' =&gt; 'form-control']) !!}</code></p>

<p>New Password : <code>{!! Form::password('password',['class' =&gt; 'form-control']) !!}</code></p>

<p>Confirm New Password : <code>{!! Form::password('verify_password',['class' =&gt; 'form-control']) !!}</code></p>

<p><strong>Controller when user register</strong></p>

<pre><code>public function postRegister(Request $request)
{
    $rules = [
        'email'             =&gt;  'required|email|unique:users',
        'confirm_email'     =&gt;  'required|same:email',
        'password'          =&gt;  'required|min:8|regex:/^(?=\S*[a-z])(?=\S*[!@#$&amp;*])(?=\S*[A-Z])(?=\S*[\d])\S*$/',
        'verify_password'   =&gt;  'required|same:password',
    ];

    $messages = [
        'email.required'            =&gt; 'email tidak boleh kosong',
        'password.required'         =&gt; 'password tidak boleh kosong',
        'password.min'              =&gt; 'Password harus minimal 8 karakter',
        'password.regex'            =&gt; 'Format password harus terdiri dari kombinasi huruf besar, angka dan karakter spesial (contoh:!@#$%^&amp;*?&gt;&lt;).',
        'verify_password.required'  =&gt; 'Verify Password tidak boleh kosong',
        'email.email'               =&gt; 'Format Email tidak valid',
        'email.unique'              =&gt; 'Email yang anda masukkan telah digunakan',
        'verify_password.same'      =&gt; 'Password tidak sama!',
    ];

    $this-&gt;validate($request,$rules,$messages);


    $newUser = $this-&gt;user-&gt;create([
        'email'         =&gt;  $request-&gt;email,
        'password'      =&gt;  \Hash::make($request-&gt;password),
    ]);
    $this-&gt;activationService-&gt;sendActivationMail($newUser);

    return redirect('/account/login')-&gt;with('success', 'Check your email');
}
</code></pre>

<p>I'm new in laravel, i've read some similar problem to change password in stackoverflow but it didn't help me.</p>

<p>How should I write code in my controller for change password user?.
Thanks in Advance.</p>
