PHP code example of agenter-labs / laravel-firewall
1. Go to this page and download the library: Download agenter-labs/laravel-firewall 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/ */
agenter-labs / laravel-firewall example snippets
AgenterLab\Firewall\Provider::class,
Route::group(['middleware' => 'firewall.all'], function () {
Route::get('/', 'HomeController@index');
});
Route::group(['middleware' => 'firewall.whitelist'], function () {
Route::get('/admin', 'AdminController@index');
});
Route::group(['middleware' => 'firewall.url'], function () {
Route::get('/admin', 'AdminController@index');
});