I am trying to override the Illuminate\Auth\Passwords\PasswordBroker::emailResetLink()
method in Laravel 5.2 to change the behavior. I have to send the reset link and the user email to third party service which will deliver the reset password email.
I have tried to change the binding for auth.password.broker
like this:
// $this->app->bind('auth.password.broker', 'App\Auth\MyPasswordBroker');
$this->app->bind('auth.password.broker', function(){
dd('BROKER');
});
Well it was unsuccessful. It's not triggered and I cannot find a way to alter the method.