Does anyone know how to override the functions used within laravel\'s password broker? I know the docs:
https://laravel.com/docs/5.3/passwords#resetting-views
<
There are some missing things for step 1 & 3 in the answer https://stackoverflow.com/a/42855948/2311074
Step 1
Probably the safest way is to simply copy the class from Illuminate\Auth\Passwords\PassswordResetServiceProvider.php to App\Provider\CustomPasswordResetServiceProviderand change:
namespace App\Providers;CustomPasswordResetServiceProvider use App\Services\CustomPasswordBrokerManager; to the topregisterPasswordBroker rename PasswordBrokerManager to CustomPasswordBrokerManagerStep 2.
Besides changing the resolve method also do the following:
namespace App\Services;use Illuminate\Auth\Passwords\DatabaseTokenRepository; to the topCustomPasswordBrokerManager