PHP code example of code16 / privat

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

    

code16 / privat example snippets


\Code16\Privat\PrivatMiddleware::class

"except" => [
    "hosts" => env("PRIVAT_EXCEPTED_HOSTS", ""),
    "urls" => env("PRIVAT_EXCEPTED_URLS", "")
]

"waiting_view" => "demo.waiting"
sh
php artisan vendor:publish --provider="Code16\Privat\PrivatServiceProvider"