PHP code example of maxwellimpact / laravel-password-reset

1. Go to this page and download the library: Download maxwellimpact/laravel-password-reset 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/ */

    

maxwellimpact / laravel-password-reset example snippets


public function boot()
{
    Password::repository('in_memory', function($app, $config) {
        return new InMemoryTokenRepository($config['expire']);
    });
}

    ...
    'passwords' => [
        'users' => [
            'provider' => 'users',
            'repository' => 'in_memory',
            'expire' => 10,
        ],
    ]