Panjeh
1 min readMar 1, 2019

--

Reply: Check for password equality

Thank you @smknstd

In my opinion you should compare the Hash in your controller logic and not validation rule.

In validation rule of the ‘old_password’ just check the ‘required’ and assign the Hash::check($value, auth()->user()->password); to a controller action.

Best Regards,
https://medium.com/@panjeh

--

--

Panjeh
Panjeh

Written by Panjeh

Posting about Python and Laravel

Responses (1)