PHP code example of timmonaghan / laravel-security-agent
1. Go to this page and download the library: Download timmonaghan/laravel-security-agent 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/ */
timmonaghan / laravel-security-agent example snippets
use Timmonaghan\SecurityAgent\Http\Middleware\BlocklistMiddleware;
// Add to the $middleware array for global enforcement:
protected $middleware = [
// ...
BlocklistMiddleware::class,
];
// Or add to $middlewareGroups['web'] to apply only to web routes:
protected $middlewareGroups = [
'web' => [
// ...
BlocklistMiddleware::class,
],
];