XSS(Cross Site Scripting) protection must need in your site because if you do not XSS protection then your site is not secure. XSS filter through you can remove html tag from your input value and it is very important to remove html tag for security. in your laravel 5.2 application you can implement by using middleware concept in your project. so how to create XSS filter middleware in your laravel application by using following step.
First fire following command and create middleware:
<strong class="step">Create Middleware</strong>
<pre>php artisan make:middleware XSS</pre>
Now, you can see new.....