PHP code example of protonemedia / laravel-xss-protection
1. Go to this page and download the library: Download protonemedia/laravel-xss-protection 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/ */
protonemedia / laravel-xss-protection example snippets
use App\Http\Controllers\CreateAccountController;
use ProtoneMedia\LaravelXssProtection\Middleware\XssCleanInput;
Route::post('account', CreateAccountController::class)->middleware(XssCleanInput::class);