PHP code example of midnite81 / intercept

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

    

midnite81 / intercept example snippets


'providers' => [
  Midnite81\Intercept\InterceptServiceProvider::class       
];

protected $routeMiddleware = [
    //...
    'isLocal' => \Midnite81\Intercept\Middleware\IsLocal::class,
    'noCache' => \Midnite81\Intercept\Middleware\NoCache::class,
    'noFacebook' => \Midnite81\Intercept\Middleware\NoFacebook::class,
    'homeIps' => \Midnite81\Intercept\Middleware\RestrictHomeIp::class,
    //...
];