PHP code example of m3rten / laravel-double-opt-in

1. Go to this page and download the library: Download m3rten/laravel-double-opt-in 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/ */

    

m3rten / laravel-double-opt-in example snippets


    'providers' => [
        /* ... */
        M3rten\DoubleOptIn\DoubleOptInServiceProvider::class,
    ],

    use AuthenticatesUsers, RegisterAndActivateUsers, ThrottlesLogins {
        RegisterAndActivateUsers::getCredentials insteadof AuthenticatesUsers;
    }

    Route::get('/verify/{token}', ['as' => 'activation.verify','uses' => 'Auth\AuthController@verify',]);
    Route::get('/activate', ['as' => 'activation.edit','uses' => 'Auth\AuthController@editActivation',]);
    Route::post('/activate', ['as' => 'activation.update','uses' => 'Auth\AuthController@postActivation',]);

    @

    php artisan vendor:publish
	php artisan migrate