PHP code example of kaoken / laravel5-private-mode

1. Go to this page and download the library: Download kaoken/laravel5-private-mode 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/ */

    

kaoken / laravel5-private-mode example snippets

 php
    protected $middleware = [
        ...
        // add
        \Kaoken\Laravel5PrivateMode\PrivateModeMiddleware::class
    ],