PHP code example of ramzeng / laravel-tamper-attack

1. Go to this page and download the library: Download ramzeng/laravel-tamper-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-tamper-attack example snippets


// app/Http/Kernel.php

class Kernel extends HttpKernel
{
    protected $middleware = [
        \Ramzeng\LaravelTamperAttack\Middlewares\TamperAttack::class,
    ];
    
    ...
    ...
}
bash
$ php artisan vendor:publish --provider="Ramzeng\LaravelTamperAttack\ServiceProvider"