PHP code example of analogrepublic / nova-duo

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

    

analogrepublic / nova-duo example snippets

@php

return [

    'enabled' => env('NOVA_DUO_ENABLED', true),

    'duo' => [
        'client_id' => env('NOVA_DUO_CLIENT_ID'),
        'client_secret' => env('NOVA_DUO_CLIENT_SECRET'),
        'api_hostname' => env('NOVA_DUO_API_HOSTNAME'),
    ]

];


 


class NovaServiceProvider extends NovaApplicationServiceProvider{

public function tools()
    {
        return [
            ...
            new \AnalogRepublic\NovaDuo\NovaDuo()

        ];
    }

}