PHP code example of salt / auth0

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

    

salt / auth0 example snippets


return [
    'app' => array(
        'client_id' => env('AUTH0_CLIENT_ID', ''),
        'client_secret' => env('AUTH0_CLIENT_SECRET', ''),
        'db_connection' => env('AUTH0_DB_CONNECTION', '')
    ),
    'api' => array(
        'audience' => env('API_MACHINE_AUDIENCE', ''),
        'client_id' => env('AUTH0_MACHINE_CLIENT_ID', ''),
        'client_secret' => env('AUTH0_MACHINE_CLIENT_SECRET', ''),
        'domain' => env('AUTH0_MACHINE_DOMAIN')
    ),
    'url' => env('APP_URL', '')
];
bash
php artisan vendor:publish --tag="auth0-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="auth0-config"
bash
php artisan vendor:publish --tag="auth0-views"