PHP code example of rabianr / laravel-ip-restrictions

1. Go to this page and download the library: Download rabianr/laravel-ip-restrictions 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/ */

    

rabianr / laravel-ip-restrictions example snippets


'whitelist' => array_merge([
    '1.1.1.1',
], array_filter(explode(',', env('IPRESTRICTIONS_WHITELIST', '')))),
sh
php artisan vendor:publish --tag="iprestrictions"