PHP code example of jsadways / authenticator

1. Go to this page and download the library: Download jsadways/authenticator 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/ */

    

jsadways / authenticator example snippets


php artisan vendor:publish --provider="Js\Authenticator\Providers\AuthServiceProvider"

// 在需驗證位置加入 js-authenticate-middleware-alias 中間件
Route::middleware(['js-authenticate-middleware-alias'])->group(function () {
    // 路徑
});