Download the PHP package maxwellimpact/laravel-password-reset without Composer
On this page you can find all versions of the php package maxwellimpact/laravel-password-reset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maxwellimpact/laravel-password-reset
More information about maxwellimpact/laravel-password-reset
Files in maxwellimpact/laravel-password-reset
Package laravel-password-reset
Short Description Laravel Password Reset Extension to enable Injected Repositories
License MIT
Informations about the package laravel-password-reset
Laravel Password Reset
Extends the default password reset for Laravel to enable custom Token repositories. It also adds an in memory Token Repository for testing.
Setup
Install
composer require maxwellimpact/laravel-password-reset
Add the Service Provider
In config/app.php
replace Illuminate\Auth\Passwords\PasswordResetServiceProvider
with Maxwellimpact\PasswordReset\PasswordResetServiceProvider
Note: If you are using Laravel 5.5 and up and have Package Discovery on, then just remove the original Laravel provider and it should work fine.
Register Your Custom Repository
Register your custom repository creator in one of your Service Providers boot method. The in_memory
repository is already registered by default.
Configure the Repository
Add your settings in auth.php
. The repository
option is required for custom token repositories to be created, otherwise it defaults to the DatabaseTokenRepository
that Laravel is hardcoded to. All config options will be passed in to your registered creator.
All versions of laravel-password-reset with dependencies
laravel/framework Version ~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0