PHP code example of mares29 / laravel-ip-filter

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

    

mares29 / laravel-ip-filter example snippets

 php
'providers' => [
	\Mares29\Breadcrumb\FilterIpServiceProvider::class,
]
 terminal
php artisan vendor:publish --provider="Mares29\IpFilter\FilterIpServiceProvider"
 php
protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->middleware('filterIp')
             ->namespace($this->namespace)
             ->group(base_path('routes/web.php'));
    }
 php
Route::get('/', function () {
    return view('welcome');
})->middleware('filterIp');