app/Http/Requests/RequestInfoFormRequest.php
/**
	 * Filter the inputs from the request.
	 *
	 * @return void
	 */
Filter the inputs from the request.
@return void
Filter the inputs from the request . @return void
public function sanitize()
	{
		$inputs = $this->all();
		foreach ($inputs as $field => $value) {
			$filtered = trim(filter_var($value, FILTER_SANITIZE_STRING));
			$inputs[$field] = $filtered === "" ? null : $filtered;
		}
		$this->replace($inputs);
	}
public function sanitize ( ) { $ inputs = $ this -> all ( ) ; foreach ( $ inputs as $ field => $ value ) { $ filtered = trim ( filter_var ( $ value , FILTER_SANITIZE_STRING ) ) ; $ inputs [ $ field ] = $ filtered === " " ? null : $ filtered ; } $ this -> replace ( $ inputs ) ; }
Filter the inputs from the request.
Filter the inputs from the request .