1. Go to this page and download the library: Download fadion/sanitizer 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/ */
$inputs = [/* some inputs */];
$sanitizers = [/* some sanitizers */];
$newInputs = Sanitizer::run($inputs, $sanitizers);
namespace App\Http\Requests;
use Fadion\Sanitizer\FormRequest\Sanitizable;
class UserRequest extends Request
{
use Sanitizable;
public function rules()
{
return [
'name' => '