PHP code example of davematics / superban

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

    

davematics / superban example snippets

bash
 php artisan vendor:publish --provider="Davematics\Superban\SuperbanServiceProvider"
bash
Route::middleware(['superban:300,5,2880'])->group(function () {

 Route::post('/add-interest', [App\Http\Controllers\SomeController::class, 'index']);

});