PHP code example of winnie / laravelchangepassword
1. Go to this page and download the library: Download winnie/laravelchangepassword library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
winnie / laravelchangepassword example snippets
'providers' => [
...
Winnie\LaravelChangePassword\LaravelChangePasswordServiceProvider::class
...
];
LaravelChangePassword::routes();
return [
// Redirect after changing password to
'redirect_to' => '/home',
// Enable current password field
'enable_current_password' => true,
// Validation error message.
'current_password_error_msg' => 'Your current password is incorrect.',
// ALert success message
'current_password_success_msg' => 'Password change successfully!',
];