PHP code example of esplora / auto-login

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

    

esplora / auto-login example snippets


use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes();

AutoLogin::to('/path');
// or use named routes
AutoLogin::route('telescope', [
    'active' => '1'
]);

AutoLogin::to('/path', 123);
// or use named routes
AutoLogin::route('telescope', [
    'active' => '1'
], 123);

use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes('/your/path/autologin');

use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes('/your/path/autologin', 'path.for.your.blade.template');