PHP code example of ramzeng / laravel-replay-attack
1. Go to this page and download the library: Download ramzeng/laravel-replay-attack 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/ */
ramzeng / laravel-replay-attack example snippets
// app/Http/Kernel.php
class Kernel extends HttpKernel
{
protected $middleware = [
\Ramzeng\LaravelReplayAttack\Middlewares\ReplayAttack::class,
];
...
...
}
bash
$ php artisan vendor:publish --provider="Ramzeng\LaravelReplayAttack\ServiceProvider"