PHP code example of area17 / twill-http-basic-auth

1. Go to this page and download the library: Download area17/twill-http-basic-auth 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/ */

    

area17 / twill-http-basic-auth example snippets

 php
'middleware' => [
    'automatic' => true,

    'groups' => ['web'],

    'class' => \A17\TwillHttpBasicAuth\Http\Middleware::class,
],
 bash
php artisan vendor:publish --provider="A17\TwillHttpBasicAuth\ServiceProvider"
 php
/**
 * Register any application services.
 *
 * @return void
 */
public function register()
{
    \A17\TwillHttpBasicAuth\Services\Helpers::load();
}