PHP code example of segun / superban
1. Go to this page and download the library: Download segun/superban 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/ */
segun / superban example snippets
bash
php artisan vendor:publish --tag=superban-config
bash
use Superban\Middleware\SuperbanMiddleware;
Route::middleware(['superban:200,2,1440'])->group(function () {
Route::post('/thisroute', function () {
// Your route logic here
});
Route::post('/anotherroute', function () {
// Your route logic here
});
});